|
Junior Member
|
03-17-2024
, 12:44
Re: Open menu only once per round
|
#5
|
So I tried to add this when opening the zombie menu but I couldn't, can you help me?
============================================= ===================
public select_class_zombie(id, menu, item)
{
if (!g_zombie[id]) return PLUGIN_HANDLED
if (item == MENU_EXIT)
{
menu_destroy(menu)
give_zombiebom(id)
return PLUGIN_HANDLED
}
new idclass[32], name[32], access
menu_item_getinfo(menu, item, access, idclass, 31, name, 31, access)
// set class zombie
g_zombieclass[id] = str_to_num(idclass)
make_zombie(id)
give_zombiebom(id)
menu_destroy(menu)
//client_print(id, print_chat, "item: %i - id: %s", name, idclass)
return PLUGIN_HANDLED
}
============================================= ===================
Last edited by Noah BR; 03-17-2024 at 12:45.
|
|
|
|