GameBanana shows no ads to members. Sign up now!
Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

[ZP] Addons: Zombie Evolution

A Config Script for Counter-Strike 1.6

103 2 kb Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <fun>
#include <zombieplague>

#define PLUGIN "ZombiePlague: Evolution"
#define VERSION "1.0"
#define AUTHOR "Sophia - Dias"

new g_point_zombie[33]
new g_SyncHud
new evolved[33] = 0
new evolved2[33] = 0

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    g_SyncHud = CreateHudSyncObj()
    register_logevent("event_round_end", 2, "1=Round_End")
}

public client_putinserver(id)
{
    set_task(0.1, "task_show_evolution", id, _, _, "b")
}

public task_show_evolution(id)
{
    if(is_user_alive(id) && zp_get_user_zombie(id))
    {
        if(evolved[id] == 1)
        {
            set_hudmessage(255,0,0, 0.015, 0.68, _, 0.2, 0.2)
            ShowSyncHudMsg(id, g_SyncHud, "Evolution Point: 1000 / 1000 Point^nEvolution Status: Evolved")
            } else {
            set_hudmessage(0,100,0, 0.1, 0.68, _, 0.2, 0.2)
            ShowSyncHudMsg(id, g_SyncHud, "Evolution Point: %i / 1000 Point^nEvolution Status: Not Evolved", g_point_zombie[id])
             }
    }  
     
}


public zp_user_infected_post(victim, infector)
{
    g_point_zombie[victim] = 0
    evolved[victim] = 0
    evolved2[victim] = 0
   
    if (is_user_alive(infector) && zp_get_user_zombie(infector))
    {
        g_point_zombie[infector]+= 5400
        evolution(infector)
    }
}

public zp_user_humanized_post(id)
{
    g_point_zombie[id] = 0
    evolved[id] = 0
    evolved2[id] = 0
}

public evolution(id)
{
    if(is_user_alive(id) && zp_get_user_zombie(id) && g_point_zombie[id] >= 1000)
    {
       evolved[id] = 1
       if(evolved2[id] == 0)
        {
              evolution_start(id)
        }
       
    }
     else
    {
        set_hudmessage(255, 40, 40, -1.0, -1.0, 0, 0.0, 3.0, 0.01, 0.01, -1)
        show_hudmessage(id, "[Evolution] +5400 Point")
     }
   
}
 
public evolution_start(id)
{
if(evolved[id] == 1)
       {
       set_hudmessage(255, 40, 40, -1.0, -1.0, 1, 0.0, 10.0, 0.01, 0.2, -1)
       show_hudmessage(id, "You Are Evolved^n[+46000 Hp | +1600 Armor | Low Gravity]")
       set_user_armor(id, 1600)
       set_user_gravity(id, 0.55)
       set_user_health(id, get_user_health(id) + 46000)
       evolved2[id] = 1
      }
}
 
public event_round_end(id)
{
    g_point_zombie[id] = 0
    evolved[id] = 0
    evolved2[id] = 0
    set_user_gravity(id, 1.0)
}
 Zombie In ZombiePlague is a Normal zombie. 
 
 After Add The "Zombie Evolution"
 
 When the normal zombie infect 4 human of more. And Have Enough Point (1000/1000   Point).  
 It Come to a new Class Zombie.
 You can add more func. (Low Gravity, +HP, +Armor,....) 
 
 After The Round Ended. And Start A new Round. 
 
 The Point Set to 0. to Repeat The Evolution
Sign up to access this!

No comments yet

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Dias
coder
Sophie
some edit

Submitter

Rainbowdash98 avatar
Rainbowdash98 Joined 4y ago
Offline
2,786 points Ranked 20,050th
11 medals 1 rare
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 6 months a member Medal icon
  • 1 year a member Medal icon
  • 2 years a member Medal icon
Rainbowdash98
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 288
  • 25d

More from Submitter

More AMX/X Scripts Scripts