Zombies/Humans Extra-Items
-
Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#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:
#include <zombie_escape>
new g_iVirus, name[32]
public plugin_init()
{
register_plugin("[ZE] Extra Item: T-Virus", "1.0", "JaCk")
g_iVirus = ze_register_item("T-Virus", 30, 0)
}
public ze_select_item_pre(id, itemid, ignorecost)
{
if (itemid != g_iVirus)
return ZE_ITEM_AVAILABLE
if(ze_is_user_zombie(id))
return ZE_ITEM_DONT_SHOW
return ZE_ITEM_AVAILABLE
}
public ze_select_item_post(id, itemid, ignorecost)
{
if (itemid != g_iVirus)
return
get_user_name(id, name, charsmax(name))
set_hudmessage(0, 255, 0, -0.05, -0.45, 1, 0.0, 5.0, 1.0, 1.0, -1)
show_hudmessage(0, "%s has infected himself with the T-Virus!", name)
ze_set_user_zombie(id)
}
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#2
Post
by Raheem » 7 years ago
Nice but why i need to be infected
He who fails to plan is planning to fail
-
Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#4
Post
by Night Fury » 7 years ago
Raheem wrote: ↑7 years ago
Nice but why i need to be infected
Don't use so we'll save many words.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
-
Raheem
- Mod Developer
- Posts: 2214
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#5
Post
by Raheem » 7 years ago
I won't use it
.
He who fails to plan is planning to fail
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
Users browsing this forum: No registered users and 3 guests