SA-MP Forums Archive
Timer alternative for gates - 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: Timer alternative for gates (/showthread.php?tid=664259)



Timer alternative for gates - PepsiCola23 - 23.02.2019

So i got a toll ,and i have 1 gate that opens and when you enter the perimeter it closes,and there is another one that opens when the first one is closed.

my question is,is there any way to close and open the gates without using timers(i dont like timers)?
i was thinkin about to check where the player is and by his coordinates to open/close the gates.but how would that work when there are multiple players there?
other alternatives


Re: Timer alternative for gates - PepsiCola23 - 23.02.2019

Someone told me they aren`t good and use more resources.
And i dont know how to use timers so they wont lag the server.


Re: Timer alternative for gates - PepsiCola23 - 23.02.2019

So i can use as many timers as i want? whats the best way possible to do it?