PDA

View Full Version : [Include] [INC] 0.1 || Easy Gate Script || 1 Line per gate.


[F.U.D.D.S]
11/03/2008, 05:25 PM
[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:

#include <a_gates>

At the top of the script and

BeginGateTimer ( );

in OnGameModeInit ( );

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

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.php?file=339a_gates.inc
Source: http://www.pastebin.ca/938691

Kind regards,

- [HR][FUDDS]

Djrasim
11/03/2008, 05:25 PM
what if you want it to open for 1 team only

[F.U.D.D.S]
11/03/2008, 05:27 PM
Then you can modify it to suit your needs.

For instance, in the timer, add something like:

if ( gTeam [ playerid ] == TEAM_WHATEVER ) {

Gutoo
11/03/2008, 06:34 PM
C:\Documents and Settings\Administrador\Desktop\SERVER\pawno\includ e\a_gates.inc(56) : error 017: undefined symbol "GetDistanceToPoint"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Erro!

what is ?

[F.U.D.D.S]
11/03/2008, 06:39 PM
Ye, i forgot to add the function. Ive changed the link so it should work now.

MPKaboose
11/03/2008, 06:50 PM
Nope my gate didnt move :(

[F.U.D.D.S]
11/03/2008, 06:57 PM
Post your CreateGate line

Rks25
11/03/2008, 08:07 PM
You got an pastebin link??

[F.U.D.D.S]
11/03/2008, 08:15 PM
http://www.pastebin.ca/938691

I do now

Rks25
11/03/2008, 08:16 PM
Nice, and put it in your first post.

blewert
11/03/2008, 08:20 PM
cool anyways, hope it works :P

Nice, and put it in your first post.

grats on 900th post ^^

Gutoo
11/03/2008, 08:28 PM
Tnks for help >:(

[SOA]Spider
12/03/2008, 01:43 PM
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 (c) 1997-2006, ITB CompuPhase


1 Error.

And what that means?

[LDT]LuxurY
12/03/2008, 02:35 PM
nice. there are LOTS of repeative topics about gates. I expect this to be stickied. ;)

aabye
12/03/2008, 02:39 PM
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 (c) 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

[SOA]Spider
12/03/2008, 03:09 PM
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 (c) 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?

cosmy
12/03/2008, 03:14 PM
you download the server pack???
if you have a server pack you need to put a_gates.inc
in pawno/includes

[SOA]Spider
13/03/2008, 01:25 PM
And what I need to do, to put that thing in??????

[SOA]Spider
14/03/2008, 02:04 PM
Can someone answer me?

alexiis
14/03/2008, 05:25 PM
Spider ]
Can someone answer me?



just copy and paste the file a_gates.inc in your folder pawno/includes

[SOA]Spider
14/03/2008, 05:30 PM
And where is that a_gates.inc?

alexiis
14/03/2008, 06:04 PM
what ?
in the download link (http://www.crazyhost.info/download.php?file=339a_gates.inc)

blewert
15/03/2008, 01:31 AM
Spider ]
And where is that a_gates.inc?


ummm, you have put it inside PAWNO >> INCLUDES.... right?

aabye
15/03/2008, 02:31 AM
Get the file a_gates.inc .. Then u copy that file a_gates.inc into includes that is your your folder with pawno. Then u in the top the script add #include <a_gates>

then it works.

[SOA]Spider
15/03/2008, 05:43 AM
One BIG BIG thanks to you all!! It works. Thanks!

blewert
15/03/2008, 07:32 AM
Spider ]
One BIG BIG thanks to you all!! It works. Thanks!

no probs, do this in future with other include files (.inc) :D

and you will have no problems at all

slash88
19/04/2008, 06:53 AM
please someone can give me a new link download because that link dont work and i need the file : a_gates.inc
thanx for help..

westr0cker
19/04/2008, 05:55 PM
how can i make if i want to put like , up the gate the name of the people whos in the gate?

slash88
20/04/2008, 05:30 PM
please someone can give me a new link download because that link dont work and i need the file : a_gates.inc
thanx for help..

Danny-08
13/06/2008, 08:08 AM
please can someone put a valid a_gates.inc link up plz (i suggest you use www.megaupload.com) links never get deleted from there.

Scooby
13/06/2008, 11:33 AM
plz update link...

farse
19/12/2008, 05:11 AM
http://solidfiles.com/info_imgs/M2.jpg (http://solidfiles.com/d/M2) Update by SolidFiles

Kaylin
17/01/2010, 01:09 PM
Can you give ma an other download link? this one from your first post doesnt works.

ramshidjafar
17/01/2010, 04:06 PM
hmm..
gate is okay but i dont know what is meant by:-

// Move_Distance = How far away a player needs to be for it to open.
// Move_Speed = How Fast the gate moves.

someone give an exampleof a gate that they made please...

:(