[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
#2

Nice idea, but you could make speed defined, so, the function will be:
Code:
OpenGateUp(objectid);
And other idea, to make
Code:
AutoClose(objectid);
I guess it didn't need explain.
Reply
#3

Very nice man U really rock at these stuff
Reply
#4

So damn useful instead of move object you got 2 good functions right?
Reply
#5

I love includes :P good work
Reply
#6

This could be helpful, but what is the purpose of saving maybe a little bit of code??... I mean, that's how people learn, by doing it...
Reply
#7

Good job.
Reply
#8

very nice work Torran , keep up the good work
Reply
#9

Good job, Joe Torran C! This will be useful
________
Easyvape Vaporizer
Reply
#10

Nice, its might be useufl for newbies :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)