View Single Post
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 01-09-2022 , 13:43   Re: set task disable
Reply With Quote #4

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(idprint_chat,"Your Task is running!!");

        
remove_task(id 100000);
        return 
PLUGIN_HANDLED;
    }
    else
    {
        
client_print(idprint_chat,"Your Task is  not running!!");
        return 
PLUGIN_HANDLED;
    }
     return 
PLUGIN_HANDLED;

__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra