Raised This Month: $ Target: $400
 0% 

[HELP] Set_Task question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 02-10-2016 , 08:37   Re: [HELP] Set_Task question
Reply With Quote #4

well you can create a var that holds next burn sound time like:

Code:
new Float:g_flNextBurnSound[33];

....

public burning_flame(taskid)
{
.....

if (g_flNextBurnSound[ID_BURN] <= get_gametime())
{
       ///emit sound here
       g_flNextBurnSound[ID_BURN] = get_gametime() + 2.0;
}
...
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
 



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 09:34.


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