SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 10/09/2008, 10:14 AM   #1
Toad
Big Clucker
 
Join Date: Apr 2008
Posts: 60
Reputation: 0
Default [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,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 .
Toad is offline   Reply With Quote
Old 10/09/2008, 10:42 AM   #2
Mr_Noob
Little Clucker
 
Join Date: Aug 2008
Posts: 35
Reputation: 0
Default 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?
Mr_Noob is offline   Reply With Quote
Old 10/09/2008, 10:52 AM   #3
Toad
Big Clucker
 
Join Date: Apr 2008
Posts: 60
Reputation: 0
Default Re: [INC] Automatic Gates by Toad (1 line - 1 gate)

damn sorry i knew i forgot something
here it is
Toad is offline   Reply With Quote
Old 10/09/2008, 11:08 AM   #4
chesh
Big Clucker
 
Join Date: Mar 2008
Posts: 51
Reputation: 0
Default Re: [INC] Automatic Gates by Toad (1 line - 1 gate)

this looks really good dude, nice :P
chesh is offline   Reply With Quote
Old 10/09/2008, 02:11 PM   #5
Castle
Huge Clucker
 
Castle's Avatar
 
Join Date: Aug 2008
Posts: 331
Reputation: 0
Default Re: [INC] Automatic Gates by Toad (1 line - 1 gate)

Ok, Thanks i wanted to do that...
Will help allot newbies and Rp servers
__________________
Castle is offline   Reply With Quote
Old 11/09/2008, 02:15 AM   #6
Sr.Rafa
Little Clucker
 
Join Date: Aug 2008
Posts: 2
Reputation: 0
Default 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
Sr.Rafa is offline   Reply With Quote
Old 11/09/2008, 05:45 AM   #7
Donuts
Huge Clucker
 
Donuts's Avatar
 
Join Date: Jun 2008
Posts: 225
Reputation: 4
Default 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?
__________________
Need help with something? Email me donuts@ng-gaming.net

Daniel Varela
Scripter
Next Generation Gaming LLC

More than Next Generation Roleplay, many more games, it's a great community, try it now.
Visit us at http://www.ng-gaming.net/
Donuts is offline   Reply With Quote
Old 11/09/2008, 12:27 PM   #8
Toad
Big Clucker
 
Join Date: Apr 2008
Posts: 60
Reputation: 0
Default 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
Toad is offline   Reply With Quote
Old 12/09/2008, 09:51 AM   #9
Unvisible11
Big Clucker
 
Join Date: Aug 2008
Posts: 55
Reputation: 0
Default 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...
Unvisible11 is offline   Reply With Quote
Old 12/09/2008, 11:16 AM   #10
Toad
Big Clucker
 
Join Date: Apr 2008
Posts: 60
Reputation: 0
Default 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
Toad is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LVPD Gates v2 Now with Auto Gates!! SlashPT Filterscripts 37 16/03/2010 03:59 PM
auto gates need cssbart Help Archive 8 18/02/2010 01:45 PM
Auto gates ;) GaGlets(R) Help Archive 7 25/11/2009 04:01 PM
Auto Gates Danikov Help Archive 26 20/10/2009 03:31 PM
[HELP] t-Auto Gates joeri55 Help Archive 2 02/06/2009 08:50 AM


All times are GMT. The time now is 04:36 PM.


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