15.02.2010, 00:41
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
How do i use it?
Here's how to use the include and make it run perfect.
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)
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();
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.
}
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)