[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
#2

Amazing... Amazing... Amazing.

Hai Aaron.
Reply
#3

Nice.
Reply
#4

Good Work
Reply
#5

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

I need screen !
Reply
#7

Nice one keep it comming.
Reply
#8

Thanks guys, i'll have more coming
Reply
#9

nice work

im gonna test it tonight

im on school now :P
Reply
#10

This is nice. Great job with your script!

~Hakam.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)