[INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[F.U.D.D.S] - 11.03.2008
[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:
At the top of the script and
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]
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
Djrasim - 11.03.2008
what if you want it to open for 1 team only
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[F.U.D.D.S] - 11.03.2008
Then you can modify it to suit your needs.
For instance, in the timer, add something like:
pawn Code:
if ( gTeam [ playerid ] == TEAM_WHATEVER ) {
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
Gutoo - 11.03.2008
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 ?
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[F.U.D.D.S] - 11.03.2008
Ye, i forgot to add the function. Ive changed the link so it should work now.
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
MPKaboose - 11.03.2008
Nope my gate didnt move
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[F.U.D.D.S] - 11.03.2008
Post your CreateGate line
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
Rks25 - 11.03.2008
You got an pastebin link??
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[F.U.D.D.S] - 11.03.2008
http://www.pastebin.ca/938691
I do now
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
Rks25 - 11.03.2008
Nice, and put it in your first post.
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
blewert - 11.03.2008
cool anyways, hope it works :P
Quote:
|
Originally Posted by Royal_Flush
Nice, and put it in your first post.
|
grats on 900th post ^^
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
Gutoo - 11.03.2008
Tnks for help
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[SOA]Spider - 12.03.2008
Код:
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?
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[LDT]LuxurY - 12.03.2008
nice. there are LOTS of repeative topics about gates. I expect this to be stickied.
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
aabye - 12.03.2008
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
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[SOA]Spider - 12.03.2008
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?
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
cosmy - 12.03.2008
you download the server pack

if you have a server pack you need
to put a_gates.inc
in pawno/includes
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[SOA]Spider - 13.03.2008
And what I need to do, to put that thing in

Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
[SOA]Spider - 14.03.2008
Can someone answer me?
Re: [INC] 0.1 || Easy Gate Script || 1 Line per gate. -
alexiis - 14.03.2008
Quote:
|
Originally Posted by [SOA
Spider ]
Can someone answer me?
|
just copy and paste the file
a_gates.inc in your folder
pawno/includes