Raised This Month: $ Target: $400
 0% 

A wait function instead of CreateTimer?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 11-17-2017 , 16:05   A wait function instead of CreateTimer?
Reply With Quote #1

Hey guys, I'd like to know if its possible to create a "wait function" or something like that to use it instead of CreateTimer? Exemple:

Can this be possible?
PHP Code:
public Action:Cmd_In(clientargs);
{
    
EmitSoundToClient(clientANNOUNCER_THREEclient_2);
    
//Wait 1.0 second
    
EmitSoundToClient(clientANNOUNCER_TWOclient_2);
    
//Wait 1.0 second
    
EmitSoundToClient(clientANNOUNCER_ONEclient_2);

Instead of that?
PHP Code:
public Action:Cmd_In(clientargs);
{
    
EmitSoundToClient(clientANNOUNCER_THREEclient_2);
    
CreateTimer(1.0TwoSecondsclient);
    
CreateTimer(2.0OneSecondclient);
}

public 
Action:TwoSeconds(Handle Timerclient)
{
    
EmitSoundToClient(clientANNOUNCER_TWOclient_2);
}

public 
Action:OneSecond(Handle Timerclient)
{
    
EmitSoundToClient(clientANNOUNCER_ONEclient_2);

Facksy is offline
 



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 00:40.


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