26.04.2010, 19:35
[b]tEazy Gate
Eazy Gate Include!
Etch told me on MSN about a idea he had but he couldnt script it,
This is slighty simular to his idea but is different, It includes 2 functions,
OpenGateUp and OpenGateDown
Gate making can be hard for people who have never done it before,
This could hopefully make it simpler for them, I use it on my current server
Example: done with ZCMD
Format:
Download:
http://pastebin.com/1SBjZy9q
THIS HAS NOT BEEN TESTED AS A INCLUDE, IF BUGS FOUND PLEASE REPORT THEM
How to use:
Create a gate ingame or by using a map editor,
Once you have that CreateObject line,
Put it under OnGameModeInit and name it...
Like this: yourgatename = CreateObject
At the top of the script add new yourgatename; i may add,
Then on a command to open a gate use OpenGateUp or OpenGateDown
Eazy Gate Include!
Etch told me on MSN about a idea he had but he couldnt script it,
This is slighty simular to his idea but is different, It includes 2 functions,
OpenGateUp and OpenGateDown
Gate making can be hard for people who have never done it before,
This could hopefully make it simpler for them, I use it on my current server
Example: done with ZCMD
pawn Code:
new testgate;
public OnGameModeInit()
{
testgate = CreateObject(980, 1746.0886230469, -1579.3900146484, 15.317207336426, 0, 0, 0);
return 1;
}
CMD:gateup(playerid, params[])
{
OpenGateUp(testgate, 2);
return 1;
}
pawn Code:
OpenGateUp(objectid, speed);
OpenGateDown(objectid, speed);
http://pastebin.com/1SBjZy9q
THIS HAS NOT BEEN TESTED AS A INCLUDE, IF BUGS FOUND PLEASE REPORT THEM
How to use:
Create a gate ingame or by using a map editor,
Once you have that CreateObject line,
Put it under OnGameModeInit and name it...
Like this: yourgatename = CreateObject
At the top of the script add new yourgatename; i may add,
Then on a command to open a gate use OpenGateUp or OpenGateDown