[Include] [INC] 0.1 || Easy Gate Script || 1 Line per gate.
#1

[center]Easy Gate Script - By FUDDS

Well, i though it was about time i released something publicly. This is basiaclly a simple script that creates gates in a position you choose then moves it to another position when a player comes close. Its easy to use, just one line per gate. Just put:

pawn Code:
#include <a_gates>
At the top of the script and

pawn Code:
BeginGateTimer ( );
in OnGameModeInit ( );

To Add a gate you need to add the following line to your script:

pawn Code:
CreateGate ( modelid , Float: X , Float: Y , Float: Z , Float: XR , Float: YR , Float: ZR , Float: MoveX , Float: MoveY , Float: MoveZ , Float: Move_Distance , Float: Move_Speed );

// Model id = The object model id;
// X , Y , Z = The coordinates of the gate when it is closed.
// MoveX , MoveY , MoveZ = The coordinates of the gate when its open.
// Move_Distance = How far away a player needs to be for it to open.
// Move_Speed = How Fast the gate moves.
Plese report any bugs here, and feel free to modify to your own specifications.

Download Link: http://www.crazyhost.info/download.p...339a_gates.inc
Source: http://www.pastebin.ca/938691

Kind regards,

- [HR][FUDDS]
Reply
#2

what if you want it to open for 1 team only
Reply
#3

Then you can modify it to suit your needs.

For instance, in the timer, add something like:

pawn Code:
if ( gTeam [ playerid ] == TEAM_WHATEVER ) {
Reply
#4

Code:
C:\Documents and Settings\Administrador\Desktop\SERVER\pawno\include\a_gates.inc(56) : error 017: undefined symbol "GetDistanceToPoint"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Erro!

what is ?
Reply
#5

Ye, i forgot to add the function. Ive changed the link so it should work now.
Reply
#6

Nope my gate didnt move
Reply
#7

Post your CreateGate line
Reply
#8

You got an pastebin link??
Reply
#9

http://www.pastebin.ca/938691

I do now
Reply
#10

Nice, and put it in your first post.
Reply
#11

cool anyways, hope it works :P
Quote:
Originally Posted by Royal_Flush
Nice, and put it in your first post.
grats on 900th post ^^
Reply
#12

Tnks for help
Reply
#13

Код:
C:\Documents and Settings\Ћiga\My Documents\Downloads\Server Configuration\filterscripts\areagates.pwn(1) : fatal error 100: cannot read from file: "a_gates"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
And what that means?
Reply
#14

nice. there are LOTS of repeative topics about gates. I expect this to be stickied.
Reply
#15

Quote:
Originally Posted by [SOA
Spider ]
Код:
C:\Documents and Settings\Ћiga\My Documents\Downloads\Server Configuration\filterscripts\areagates.pwn(1) : fatal error 100: cannot read from file: "a_gates"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
And what that means?
It cant find the file "a_gates"

Put the A_Gates into the includes folder in the pawno
Reply
#16

Quote:
Originally Posted by aabye
Quote:
Originally Posted by [SOA
Spider ]
Код:
C:\Documents and Settings\Ћiga\My Documents\Downloads\Server Configuration\filterscripts\areagates.pwn(1) : fatal error 100: cannot read from file: "a_gates"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
And what that means?
It cant find the file "a_gates"

Put the A_Gates into the includes folder in the pawno
How? Can you give me a tutorial, please?
Reply
#17

you download the server pack
if you have a server pack you need to put a_gates.inc
in pawno/includes
Reply
#18

And what I need to do, to put that thing in
Reply
#19

Can someone answer me?
Reply
#20

Quote:
Originally Posted by [SOA
Spider ]
Can someone answer me?
just copy and paste the file a_gates.inc in your folder pawno/includes
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)