[Include] [INC] tEazy Gate
#1

[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
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;
}
Format:
pawn Code:
OpenGateUp(objectid, speed);
OpenGateDown(objectid, speed);
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
Reply


Messages In This Thread
[INC] tEazy Gate - by Torran - 26.04.2010, 19:35
Re: [INC] tEazy Gate - by Martin_M - 26.04.2010, 19:43
Re: [INC] tEazy Gate - by ColdXX - 26.04.2010, 19:44
Re: [INC] tEazy Gate - by Lorenc_ - 26.04.2010, 20:51
Re: [INC] tEazy Gate - by luigifan9 - 26.04.2010, 20:52
Re: [INC] tEazy Gate - by Scenario - 27.04.2010, 02:13
Re: [INC] tEazy Gate - by [MWR]Blood - 27.04.2010, 08:25
Re: [INC] tEazy Gate - by aircombat - 27.04.2010, 13:36
Re: [INC] tEazy Gate - by ViruZZzZ_ChiLLL - 27.04.2010, 13:51
Re: [INC] tEazy Gate - by Peep - 27.04.2010, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)