Hi, what about :
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_SPECTATOR)
set_task(31.1, "removeweapons", id + 100000)
then :
PHP Code:
public function_check(id)
{
if(task_exists(id + 100000))
{
client_print(id, print_chat,"Your Task is running!!");
remove_task(id + 100000);
return PLUGIN_HANDLED;
}
else
{
client_print(id, print_chat,"Your Task is not running!!");
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
__________________