DESCRIPTION:-
The extra item is antidote. It is for zombies of course .Its a simple logic behind "use it to become human".
Installation and instruction
Just copy the code and compile in the compiler and install it like any other plugin after getting the amxx file
You don't need screenshots for antidote do you ?
CODE:-
- #include <zombie_escape>
- new g_iAntidote, bool:g_bCanUse
- public plugin_init()
- {
- register_plugin("[ZE] Extra Item: Antidote", "1.1", "Rain1153/Jack GamePlay")
- g_iAntidote = ze_register_item("Antidote", 30, 0)
- }
- public ze_zombie_appear()
- {
- g_bCanUse = false
- }
- public ze_zombie_release()
- {
- g_bCanUse = true
- }
- public ze_select_item_pre(id, itemid, ignorecost)
- {
- if (itemid != g_iAntidote)
- return ZE_ITEM_AVAILABLE
- if (!ze_is_user_zombie(id))
- return ZE_ITEM_DONT_SHOW
- if (!g_bCanUse || ze_get_zombies_number() <= 1)
- return ZE_ITEM_UNAVAILABLE
- return ZE_ITEM_AVAILABLE
- }
- public ze_select_item_post(id, itemid, ignorecost)
- {
- if (itemid != g_iAntidote)
- return
- new szName[32]
- ze_set_user_human(id)
- get_user_name(id, szName, charsmax(szName))
- set_hudmessage(0, 255, 0, -0.05, -0.45, 1, 0.0, 5.0, 1.0, 1.0, -1)
- show_hudmessage(0, "%s has used antidote!", szName)
- }