AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_task (https://forums.alliedmods.net/showthread.php?t=143337)

njee 11-18-2010 10:31

set_task
 
how to put set_task, a player for some time, had to perform a certain action, but at the end of this time, this action will not be satisfied.

if not complicate the example please

drekes 11-18-2010 11:08

Re: set_task
 
PHP Code:

public somefunc(id)
{
    
set_task(5.0"SomeOtherFunc"id);
}

public 
SomeOtherFunc(id)
{
     
// do stuff after 5.0 seconds.


I hope this is what you mean.
If not, try rephrasing the question.

Bugsy 11-18-2010 11:08

Re: set_task
 
?
PHP Code:

set_task30.0 "TheFunc" id );

public 
TheFuncid )
{
     if ( 
is_user_connectedid ) && /* something */ )
     {   
            
//do this
     
}



njee 11-18-2010 11:21

Re: set_task
 
I want to since the beginning of the round involved a time counter, for example 30 seconds. If during this time at least one terrorist has time to reach the area func_bomb_target, actions, and if no one did not have time to plugin it off before the next round.
so clear?


All times are GMT -4. The time now is 11:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.