01.08.2010, 10:15
(
Последний раз редактировалось Ash.; 06.08.2010 в 09:16.
)
Hello all,
I woke up this morning, and thought about what i could do for you guys, well, seeing as this is my first release, and i know everyone for the first release has done an AFK system, well i like to be different, and i havent seen many of these gate scripts, so here it is:
http://pawn.pastebin.com/AEW4uZRK
Installation:
Copy the file into your PAWN Compiler, add any gates that are required, click compile! Copy it into your FilterScripts folder, and add {your file name} to the filterscripts line in server.cfg
Example gate?
I have included an example gate, near the crossover where the house is in SOUTH LV (You do a mission with a monster truck there) - I do however reccomened you comment this gate out, and only use it as an example to copy off, as people can just walk round this gate!
Add me a gate?
Send me your co-ordinates (open x, y, z, rotx, roty, rotz and closed x, y, z) and ill happily do it for you
Explain how to?
Ok. This script uses an array and loops to create and operate the gates, it loops for a defined amount of gates. The script then create a "command" loop, so it waits for a players command, and tries to find it in the array. You need to fill in all the details requested in the array. Like so:
Gate ID: Means the "number" of the gate
Gate Model: The actual ID of the object you wish to be the gate
To get these coordinates, use a map editor, or SAMP's /save function (although this may not be very accurate for what you want it for)
I need help?!
PM me
I hope you enjoy this script, it was quite irritating to make, but as usual, just a couple of numbers and letters fixed it
Edit: If anybody wants this converting to dcmd, let me know and ill do it for you
Thanks
Ash
Credits:
dice7 - Array/Enum fix
SAMP Team - Creating such a wonderful thing
SAMP Forum - for all the comments and posts that have helped me learn PAWN - im quite good now, according to some people
Enjoy
I woke up this morning, and thought about what i could do for you guys, well, seeing as this is my first release, and i know everyone for the first release has done an AFK system, well i like to be different, and i havent seen many of these gate scripts, so here it is:
http://pawn.pastebin.com/AEW4uZRK
Installation:
Copy the file into your PAWN Compiler, add any gates that are required, click compile! Copy it into your FilterScripts folder, and add {your file name} to the filterscripts line in server.cfg
Example gate?
I have included an example gate, near the crossover where the house is in SOUTH LV (You do a mission with a monster truck there) - I do however reccomened you comment this gate out, and only use it as an example to copy off, as people can just walk round this gate!
Add me a gate?
Send me your co-ordinates (open x, y, z, rotx, roty, rotz and closed x, y, z) and ill happily do it for you

Explain how to?
Ok. This script uses an array and loops to create and operate the gates, it loops for a defined amount of gates. The script then create a "command" loop, so it waits for a players command, and tries to find it in the array. You need to fill in all the details requested in the array. Like so:
pawn Код:
{gateid, closedx, closedy, closedz, rotationx, rotationy, rotationz, openx, openy, openz, command (with /), gatemodel}
Gate Model: The actual ID of the object you wish to be the gate
To get these coordinates, use a map editor, or SAMP's /save function (although this may not be very accurate for what you want it for)
I need help?!
PM me

I hope you enjoy this script, it was quite irritating to make, but as usual, just a couple of numbers and letters fixed it

Edit: If anybody wants this converting to dcmd, let me know and ill do it for you
Thanks
Ash
Credits:
dice7 - Array/Enum fix
SAMP Team - Creating such a wonderful thing

SAMP Forum - for all the comments and posts that have helped me learn PAWN - im quite good now, according to some people

Enjoy
