SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Includes (https://forum.sa-mp.com/forumdisplay.php?f=83)
-   -   [Include] [INC] t-Auto Gates (https://forum.sa-mp.com/showthread.php?t=50322)

Toad 10/09/2008 10:14 AM

[INC] t-Auto Gates
 
t-AutoGates by Toad

<> Script Type <>

- Include

<> Description <>

- With this include, you can create automatic gates with only one line in your script.

<> Installation <>

- Download the "t-Auto Gates.inc".
- Copy it in your /pawno/include folder.
- Open your gamemode and copy this line under "#include <a_samp>": "#include <t-Auto Gates>".

<> Commands & Function <>

- There is only one function you can use of this include:

> AddAutoGate(modelid,Float:cX,Float:cY,Float:cZ,Flo at:rX,Float:rY,Float:rZ,Float:oX,Float:oY,Float:oZ ,namecanenter[24],open_distance)

modelid - objectid
cX - closedgate X coord
cY - closedgate Y coord
cZ - closedgate Z coord
rX - rotation X coord
rY - rotation Y coord
rZ - rotation Z coord
oX - opengate X coord
oY - opengate Y coord
oZ - opengate Z coord
namecanenter - Full or Part of the PlayerName of the Player/Clan that can enter
open_distance - radius, in which a player has to be that the gate opens

<> Example <>

- In front of the LVPD:
- AddAutoGate(980,2237.3050,2453.2110,11.421,0.0,0.0 ,90.00,2237.3050,2453.2110,1.421,"[MYCLAN]",50);

<> Download <>

- http://www.fallfromthesky.com/resour...oad+button.jpg

Leave comments, please :).

Mr_Noob 10/09/2008 10:42 AM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
This is nice and all, but surely we would need a download link of some sort?

Toad 10/09/2008 10:52 AM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
damn sorry i knew i forgot something
here it is :D

chesh 10/09/2008 11:08 AM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
this looks really good dude, nice :P

Castle 10/09/2008 02:11 PM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
Ok, Thanks i wanted to do that...
Will help allot newbies and Rp servers

Sr.Rafa 11/09/2008 02:15 AM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
hi,
good idea, but for me have a problem.
in compilation have 1 waring:

: warning 213: tag mismatch

I go to my server, no connect, get a error in my GTA:SA

Donuts 11/09/2008 05:45 AM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
Quote:

Originally Posted by Sr.Rafa
hi,
good idea, but for me have a problem.
in compilation have 1 waring:

: warning 213: tag mismatch

I go to my server, no connect, get a error in my GTA:SA

In what line you get that error?

Toad 11/09/2008 12:27 PM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
for me, it has no error at all :|
maybe the error isnt from the include
have you done the line right??
AddAutoGate(.....); ???? with 11 arguments????

i have added an example to my first post

Unvisible11 12/09/2008 09:51 AM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
thx
but what is the rotation to make the gate like normal....
not like it will be like on the floor so it will be like a wall...

Toad 12/09/2008 11:16 AM

Re: [INC] Automatic Gates by Toad (1 line - 1 gate)
 
u have to make the gate with an object editor
then u have the closedX - closedZ and the rotationX - rotationZ
mostly i make the open gate only lower than the closed what means :
openX = closedX openY = closedY openZ = closedZ-10

PS i made a lil error in my example, fixed now


All times are GMT. The time now is 01:14 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.