Alarm help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Alarm help (
/showthread.php?tid=138483)
Alarm help -
Steven82 - 02.04.2010
Ok...so how do i make like sounds, and explosions repeative?
Re: Alarm help -
V1ceC1ty - 02.04.2010
https://sampwiki.blast.hk/wiki/PlayerPlaySound
You could repeat the sounds with a timer.
Re: Alarm help -
Steven82 - 02.04.2010
I would use the function like
"SetTimer,miliseconds"
Re: Alarm help -
V1ceC1ty - 02.04.2010
Yep,
https://sampwiki.blast.hk/wiki/SetTimer
Re: Alarm help -
Steven82 - 02.04.2010
Ok...thanks so when i use the command the explosion will reapt until the timer goes off?
Re: Alarm help -
V1ceC1ty - 02.04.2010
If you set the timer to SetTimer("example",1000,true); it will keep repeating until you kill it with
https://sampwiki.blast.hk/wiki/KillTimer .
If you set the timer to SetTimer("example",1000,false); it will only run the timer for 1 second and then stop. This doesn't mean if you set it to 10000 it will repeat the sound while the timer is being run.
Re: Alarm help -
Steven82 - 02.04.2010
oh....that is what i meant but thanks for replying.