SA-MP Forums Archive
[Include] [INC] tEazy Gate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] tEazy Gate (/showthread.php?tid=144341)



[INC] tEazy Gate - Torran - 26.04.2010

[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



Re: [INC] tEazy Gate - Martin_M - 26.04.2010

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.


Re: [INC] tEazy Gate - ColdXX - 26.04.2010

Very nice man U really rock at these stuff


Re: [INC] tEazy Gate - Lorenc_ - 26.04.2010

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


Re: [INC] tEazy Gate - luigifan9 - 26.04.2010

I love includes :P good work


Re: [INC] tEazy Gate - Scenario - 27.04.2010

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...


Re: [INC] tEazy Gate - [MWR]Blood - 27.04.2010

Good job.


Re: [INC] tEazy Gate - aircombat - 27.04.2010

very nice work Torran , keep up the good work


Re: [INC] tEazy Gate - ViruZZzZ_ChiLLL - 27.04.2010

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


Re: [INC] tEazy Gate - Peep - 27.04.2010

Nice, its might be useufl for newbies :P