Alarm help
#1

Ok...so how do i make like sounds, and explosions repeative?
Reply
#2

https://sampwiki.blast.hk/wiki/PlayerPlaySound

You could repeat the sounds with a timer.
Reply
#3

I would use the function like

"SetTimer,miliseconds"
Reply
#4

Yep, https://sampwiki.blast.hk/wiki/SetTimer
Reply
#5

Ok...thanks so when i use the command the explosion will reapt until the timer goes off?
Reply
#6

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.
Reply
#7

oh....that is what i meant but thanks for replying.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)