[Include] Ultimate Gate Include | UGI - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Ultimate Gate Include | UGI - Automatic Gates (
/showthread.php?tid=191138)
Ultimate Gate Include | UGI - Automatic Gates -
PSPgamer_10 - 18.11.2010
Ultimate Gate System
Ultimate Gate System, (shorter: UGI) allows you to create your Automatic Gates easier.
And you only need this Informations:
Modellid, closedX, closedY, closedZ, openX, openY, openZ, rotX, rotY, rotZ.
You see, you need only the Model-ID and the 9 coordinates, and you create your Automatic Workin' Gate with only one Function !
Features
Quote:
• Automatic working Gates, you need only the closed-, open- and Rotation coordinates.
• The Gate-Locking Function allows you to Lock the Gates for specific Players (good for Servers with factions and teams).
• The "OnGateOpen" and "OnGateClose" Functions allows you to control the Texts and other things to control on Gate-open/closing
• The "GATE_CHECKTIME" define allows you to set the Checking-time of ALL gates. (if you enter 1000, all Gates will be checked all 1000 MiliSeconds)
• The "GATE_ACTIVATE_RANGE" define allows you to set the Activation-Range of the Gates. (if you enter 5.0, the Gate will be open if anyone is 5 meters near to gate)
• You must enter the amount of your created gates on the "MAX_GATES" define.
IMPORTANT: You can not create more Gates as the amount you written on "MAX_GATES".
|
Funktionen & Callbacks
Functions
Quote:
• CreateGate(modelid, closedX, closedY, closedZ, openX, openY, openZ, rotX, rotY, rotZ)
*** Creates the Gate. (closedX/Y/Z=Closed Coords) - (openX/Y/Z=Open Coords) - (rotX/Y/Z=Rotation)
• DestroyGate(gateid)
*** This deletes the Gate (gateid=ID of the Gate to delete)
• IsGateLockedForPlayer(forplayerid, gateid)
*** Returns 1, if the 'gateid' is locked for the Playerid 'forplayerid'.
• ToggleGateLockForPlayer(playerid, gateid, toggle)
*** This locks the Gate 'gateid' for 'playerid'. Toggle: (0=NOT-Locked )|( 1=Locked)
• ToggleGateLockForAll(gateid, toggle)
*** This locks the Gate 'gateid' for ALL players. Toggle: (0=NOT-Locked )|( 1=Locked)
|
Callbacks
Quote:
• OnGateOpen(gateid, byplayerid)
*** This Callback is called if anyone opens the Gate. 'byplayerid' is the Player wich opens the Gate.
• OnGateClose(gateid)
*** This Callback is called if nobody is near the Gate and the Gate closes.
|
Re: Ultimate Gate Include | UGI - Automatic Gates -
Lorenc_ - 18.11.2010
Very useful, good job, keep it up.
Re: Ultimate Gate Include | UGI - Automatic Gates -
Natrens - 18.11.2010
good job.
Re: Ultimate Gate Include | UGI - Automatic Gates -
Xcite - 18.11.2010
Good job !
Respuesta: Ultimate Gate Include | UGI - Automatic Gates -
anonymousx - 18.11.2010
nice job
Re: Ultimate Gate Include | UGI - Automatic Gates -
airsoftglock - 25.11.2010
Good job. This will be usfull for many people! I was thinking about making somthing like this but i guess ill just make a FS now.
Re: Ultimate Gate Include | UGI - Automatic Gates -
Osviux - 26.11.2010
Wonderful!
Respuesta: Ultimate Gate Include | UGI - Automatic Gates -
MrDeath537 - 26.11.2010
Really nice, the object streamers should have functions to create gates

.
Re: Ultimate Gate Include | UGI - Automatic Gates -
Mr L - 26.11.2010
Really nice job.
Re: Ultimate Gate Include | UGI - Automatic Gates -
WillyP - 26.11.2010
That's really nice! GJ!