[Include] [INC] Automatic Gate's
#1

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)
Reply


Messages In This Thread
[INC] Automatic Gate's - by Anwix - 15.02.2010, 00:41
Re: [INC] Automatic Gate's - by iRemix - 15.02.2010, 00:43
Re: [INC] Automatic Gate's - by Eazy_Efolife - 15.02.2010, 01:29
Re: [INC] Automatic Gate's - by swat853 - 15.02.2010, 03:01
Re: [INC] Automatic Gate's - by laserhel50 - 15.02.2010, 06:00
Re: [INC] Automatic Gate's - by Mumins - 15.02.2010, 10:44
Re: [INC] Automatic Gate's - by MaykoX - 15.02.2010, 12:09
Re: [INC] Automatic Gate's - by Anwix - 16.02.2010, 01:21
Re: [INC] Automatic Gate's - by ThaYuriShit - 16.02.2010, 11:21
Re: [INC] Automatic Gate's - by »»»Hakam - 16.02.2010, 11:48

Forum Jump:


Users browsing this thread: 2 Guest(s)