Approved T-Virus

Zombies/Humans Extra-Items
Post Reply
User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

T-Virus

#1

Post by Night Fury » 7 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 private projects.
Discord: Fury#7469
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#2

Post by Raheem » 7 years ago

Nice but why i need to be infected :lol: :lol:
He who fails to plan is planning to fail

User avatar
OxiCorm
Member
Member
Posts: 33
Joined: 7 years ago
Contact:

#3

Post by OxiCorm » 7 years ago

Nice jacké

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#4

Post by Night Fury » 7 years ago

Raheem wrote: 7 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 private projects.
Discord: Fury#7469
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#5

Post by Raheem » 7 years ago

Ja[C]k GamePlay wrote: 7 years agoDon't use so we'll save many words. ;)
I won't use it :D.
He who fails to plan is planning to fail

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 2 guests