Create explosion loop
#2

If you use SetTimerEx you could pass the location of the explosion to the function you're calling. Then after the explosion function is called, check if it's still within the 5-10 minutes (you could use timestamps, save the timestamp when the fire starts and then get a new timestamp to check the passed time in seconds). Then simply set the timer again.

SetTimerEx
Timestamps (gettime)

To get a timestamp. you can simply use:
Код:
new stamp = gettime();
No need to enter the hour, minute, second variables if you don't need them

Example of passing variables with SetTimerEx:
PHP код:
SetTimerEx("SomeFunction"1000false"isf"10"string value"10.0);
forward SomeFunction(integerVariablestringVariable[], Float:floatVariable);
public 
SomeFunction(integerVariablestringVariable[], Float:floatVariable)
{
    
printf("Data: %d %s %f"integerVariablestringVariablefloatVariable);

Reply


Messages In This Thread
Create explosion loop - by CSLangdale - 09.10.2017, 11:39
Re: Create explosion loop - by Jstylezzz - 09.10.2017, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)