Im confused at what your trying to do
PHP Code:
public cmdWMenu(id)
{
if(g_b10Gone[id]) //This is set to false by default unless you declare it true
{
if(get_pcvar_num(gCvarMenuOpen) == 1) //This is set to 1 in plugin_init, therefore none of the code below will be executed
return PLUGIN_HANDLED
if(get_pcvar_num(gCvarMenuOpen) == 0)
{
set_task(TASK_MENU_DISLPAY_TIME, "choose_menu");
}
}
else
{
client_print(id, print_chat, "10 Secunds have gone, try next round");
}
return PLUGIN_CONTINUE
}
__________________