when the round ends I can buy anything (using the old style menu)
I solved it by now well
in ttt_items_base
PHP Code:
public client_command(id)
{
if(!is_user_alive(id) || ttt_return_check(id))// <------- HERE!!!
return PLUGIN_CONTINUE;
static command[16];
read_argv(0, command, charsmax(command));
for(new i = 0; i <= charsmax(g_szBuyCommands); i++)
{
if(equal(command, g_szBuyCommands[i]))
{
if(!task_exists(id))
set_task(0.1, "ttt_buymenu_show", id);
return PLUGIN_HANDLED;
}
}
if(equal(command, "client_buy_open"))
{
// CHANGED
message_begin(MSG_ONE, get_user_msgid("BuyClose"), _, id);
message_end();
ttt_buymenu_show(id);
}
return PLUGIN_CONTINUE;
}
PHP Code:
if(!is_user_alive(id) || ttt_return_check(id))
return PLUGIN_CONTINUE;
---->
PHP Code:
if(!is_user_alive(id) /*|| ttt_return_check(id)*/)// <------- HERE!!!
return PLUGIN_CONTINUE;
PHP Code:
stock ttt_return_check(id)
{
new game = ttt_get_gamemode();
if(!is_user_connected(id) || game == GAME_OFF || game == GAME_ENDED)
return 1;
return 0;
}