Constant Alarm. - 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)
+--- Thread: Constant Alarm. (
/showthread.php?tid=295569)
Constant Alarm. -
Lynn - 06.11.2011
How would I make a car alarm, constant?
So I don't have to reset it.
I want to avoid timers.
Re: Constant Alarm. -
MP2 - 07.11.2011
No other way; timers.
Re: Constant Alarm. -
Lynn - 07.11.2011
I had a timer set on OnGameModeInit()
But it crashed the server after the timer was set to reload.
Do I need it to be a player timer? Or Global.
I figured global...
Re: Constant Alarm. -
MP2 - 07.11.2011
Time how log vehicle or alarms last for, make a timer 5~ seconds lower on repeat, with a loop checking an array of vehicles.
new vAlarm[MAX_VEHICLES];