SA-MP Forums Archive
[Include] [INC] Automatic Gate's - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Automatic Gate's (/showthread.php?tid=127811)



[INC] Automatic Gate's - Anwix - 15.02.2010

What is it?
It's basically an automatic gate system that allows you to create automatic gates with ease, the include does all the hard work.

Natives
pawn Code:
native CreateGate(gateid, modelid, Float:closedX, Float:closedY, Float:closedZ, Float:closedR, Float:openX, Float:openY, Float:openZ);
native DestroyGate(gateid);
native EnableGateSystem();
native DisableGateSystem();
How do i use it?
Here's how to use the include and make it run perfect.

pawn Code:
#include  <a_samp>
#include  <a_gate>

public OnGameModeInit()
{
    EnableGateSystem(); // We'll set the timer thats going to check a players distance from the gate.
    CreateGate(0, 980, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000);
}

public OnGameModeExit()
{
    for (new x = 0; x <= GateCount; x++) DestroyGate(x); // This will destroy all created gates.
    DisableGateSystem(); // Kill the timer once the gamemode exit's.
}
Dont's
Please dont release this as your own work, but you may edit/change it to suit yourself.


This is my first public release so please report any problems here and i will fix them


Downloads
(Includes howto.amx/pwn and the a_gate.inc)


Re: [INC] Automatic Gate's - iRemix - 15.02.2010

Amazing... Amazing... Amazing.

Hai Aaron.


Re: [INC] Automatic Gate's - Eazy_Efolife - 15.02.2010

Nice.


Re: [INC] Automatic Gate's - swat853 - 15.02.2010

Good Work


Re: [INC] Automatic Gate's - laserhel50 - 15.02.2010

Don't forget, if you wanna see this and more, check my signature


Re: [INC] Automatic Gate's - Mumins - 15.02.2010

I need screen !


Re: [INC] Automatic Gate's - MaykoX - 15.02.2010

Nice one keep it comming.


Re: [INC] Automatic Gate's - Anwix - 16.02.2010

Thanks guys, i'll have more coming


Re: [INC] Automatic Gate's - ThaYuriShit - 16.02.2010

nice work

im gonna test it tonight

im on school now :P


Re: [INC] Automatic Gate's - »»»Hakam - 16.02.2010

This is nice. Great job with your script!

~Hakam.