sencor --> i have surv and nemesis buy plugin, but dont
started nemesis or survivor round when i buy nemesis or survivor.
Me:
You can only start nemesis or survivor round if you buy it before countdown.
This one works great but it wont start round as nemesis, survivor it will only buy it.
PHP Code:
#include <amxmodx>
#include <zp50_core>
#include <zp50_items>
#include <zp50_class_nemesis>
#include <zp50_class_survivor>
new g_nemesis, g_survivor
public plugin_init()
{
register_plugin("[ZP] Extra: Surv or Nem", "1", "snaker-beatter")
g_nemesis = zp_items_register("Buy Nemesis", 30)
g_survivor = zp_items_register("Buy Survivor", 25)
}
public zp_fw_items_select_pre(id, itemid)
{
if (itemid == g_nemesis)
{
if (!zp_core_is_zombie(id) || zp_class_nemesis_get(id) || zp_class_survivor_get(id))
return ZP_ITEM_DONT_SHOW;
return ZP_ITEM_AVAILABLE;
}
if (itemid == g_survivor)
{
if (zp_core_is_zombie(id) || zp_class_survivor_get(id) || zp_class_nemesis_get(id))
return ZP_ITEM_DONT_SHOW;
return ZP_ITEM_AVAILABLE;
}
return ZP_ITEM_AVAILABLE;
}
public zp_fw_items_select_post(id, itemid)
{
if (itemid == g_nemesis)
{
zp_class_nemesis_set(id)
}
if (itemid == g_survivor)
{
zp_class_survivor_set(id)
}
}
__________________