SA-MP Forums Archive
Efficient Automatic 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Efficient Automatic Gates (/showthread.php?tid=132768)



Efficient Automatic Gates - Joe_ - 09.03.2010

Hello.

I'm currently scripting my map, and after a phew goes at creating gates in the past, I always end up with one timer for each gate, or just too much code.

Can anybody teach me how to create multiple automatic gates with only one timer?
Dchidell gave me a really good gate function but I've lost it

I'd prefer nobody to lead me to one of the many includes/filterscripts, because I'll be releasing the script.
You'll get credits in the release for the code.

Please remember I need it to be efficient and not very memory consuming. (No more than one timer, and no big arrays)
I don't like asking for help, but here I am

Cheers m8s
Joe


Re: Efficient Automatic Gates - Joe_ - 12.03.2010

BUMP


Re: Efficient Automatic Gates - ihatetn931 - 12.03.2010

Here you only need 1 timer for all gates

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


Re: Efficient Automatic Gates - Joe_ - 12.03.2010

I did try this. It created the gates, but they wouldn't move. No idea why

The coordinates were correct, and I double-checked the code, strange thing, the gate creators don't work either.


Re: Efficient Automatic Gates - ihatetn931 - 12.03.2010

Quote:
Originally Posted by Joe_
I did try this. It created the gates, but they wouldn't move. No idea why

The coordinates were correct, and I double-checked the code, strange thing, the gate creators don't work either.
It worked fine for me. I've had no problems with it