Raised This Month: $ Target: $400
 0% 

set_task


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
njee
Junior Member
Join Date: Nov 2010
Old 11-18-2010 , 10:31   set_task
Reply With Quote #1

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
njee is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-18-2010 , 11:08   Re: set_task
Reply With Quote #2

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.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-18-2010 , 11:08   Re: set_task
Reply With Quote #3

?
PHP Code:
set_task30.0 "TheFunc" id );

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

__________________

Last edited by Bugsy; 11-18-2010 at 11:10.
Bugsy is offline
njee
Junior Member
Join Date: Nov 2010
Old 11-18-2010 , 11:21   Re: set_task
Reply With Quote #4

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?
njee is offline
Old 11-19-2010, 08:04
njee
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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