Approved T-Virus

Zombies/Humans Extra-Items
Post Reply
User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 619
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

T-Virus

#1

Post by Mohamed Alaa » 2 Years Ago

Hi, this is new extra item for humans.
Buy it & you'll be ZM.
Have fun.
Code:

  1. #include <zombie_escape>
  2.  
  3. new g_iVirus, name[32]
  4.  
  5. public plugin_init()
  6. {
  7.     register_plugin("[ZE] Extra Item: T-Virus", "1.0", "JaCk")
  8.     g_iVirus = ze_register_item("T-Virus", 30, 0)
  9. }
  10.  
  11. public ze_select_item_pre(id, itemid, ignorecost)
  12. {
  13.     if (itemid != g_iVirus)
  14.         return ZE_ITEM_AVAILABLE
  15.  
  16.     if(ze_is_user_zombie(id))
  17.         return ZE_ITEM_DONT_SHOW
  18.  
  19.     return ZE_ITEM_AVAILABLE
  20. }
  21.  
  22. public ze_select_item_post(id, itemid, ignorecost)
  23. {
  24.     if (itemid != g_iVirus)
  25.         return
  26.  
  27.     get_user_name(id, name, charsmax(name))
  28.     set_hudmessage(0, 255, 0, -0.05, -0.45, 1, 0.0, 5.0, 1.0, 1.0, -1)
  29.     show_hudmessage(0, "%s has infected himself with the T-Virus!", name)
  30.     ze_set_user_zombie(id)
  31. }
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#2

Post by Raheem » 2 Years Ago

Nice but why i need to be infected :lol: :lol:
You don't know? Learn and you will know.

OxiCorm
Member
Member
Posts: 33
Joined: 2 Years Ago
Has thanked: 0
Been thanked: 0
Contact:

#3

Post by OxiCorm » 2 Years Ago

Nice jacké

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 619
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#4

Post by Mohamed Alaa » 2 Years Ago

Raheem wrote:
2 Years Ago
Nice but why i need to be infected :lol: :lol:
Don't use so we'll save many words. ;)
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#5

Post by Raheem » 2 Years Ago

Ja[C]k GamePlay wrote:
2 Years Ago
Don't use so we'll save many words. ;)
I won't use it :D.
You don't know? Learn and you will know.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest