[Include] [INC] t-Auto Gates
#1

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,FloatX,FloatY,FloatZ ,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 <>

-

Leave comments, please .
Reply
#2

This is nice and all, but surely we would need a download link of some sort?
Reply
#3

damn sorry i knew i forgot something
here it is
Reply
#4

this looks really good dude, nice :P
Reply
#5

Ok, Thanks i wanted to do that...
Will help allot newbies and Rp servers
Reply
#6

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

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?
Reply
#8

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
Reply
#9

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...
Reply
#10

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
Reply
#11

can you tell me the normal rotation's thate pepole do?and by the way
you know the modelid and rotation of the lspd garage gate? plz..
Reply
#12

to get the coords etc is what u have to do
im not here to search for the coords u have to make it with object editor
Reply
#13

Use MTA:Race Map Editor and then Compile it here:
http://gtamap.delux-host.com/old/
to PWN Format and you will receive the :
pawn Код:
CreateObject(ObjectID,Float:X,Float:Y,Float:Z,0,0,90,);
thats what i do... to get cords of objects but for interior you need BME Object Editor which allows you to edit the objects ingame.
Reply
#14

I thought, that finally found the best gate include / script - but no - it does as the all other scripts. Gates opens only for player, that have alrgest ID. How to fix that it opens for all players?
Reply
#15

It does open for all players!! i tested it with 3 players, everyone could enter
Reply
#16

Maybe you know where is problem? AddAutoGate - i need to put it ongamemodeinit, right?
Reply
#17

yes it goes at ongamemodeinit
why shouldnt it work for the other players??
Reply
#18

Nevermind, already solved the problem. http://forum.sa-mp.com/index.php?topic=73348.0
Reply
#19

nice fs, and easy to use
Reply
#20

damn its right!!!
it really only works for the highest ID
sorry u had got absolutely right
i made it right (i think) so thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)