SA-MP Forums Archive
[Request] Need help scripting gates - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Request] Need help scripting gates (/showthread.php?tid=273435)



[Request] Need help scripting gates - ThatGuyInThePurple - 01.08.2011

So pretty much, I need help scripting 5 gates individually, I have no clue what-so-ever to do, so if somebody could please assist me in scripting these gates to open, and close, it'd be nice.

So what I want is 5 gates to be opened via' /fdgate [1-5] to where it takes about 10 seconds for them to open, they stay open for another 15 seconds, and then close at the same rate of 10 seconds.

If anybody could assist me it would be greatly appreciated
The object stuff is here:
Quote:

(1649, 1005.0459594727, -1336.6044921875, 14.044108390808, 0, 0, 0);
(1649, 1000.6857910156, -1336.4299316406, 14.048554420471, 0, 0, 0);
(1649, 996.62658691406, -1336.2214355469, 14.048554420471, 0, 0, 0);
(1649, 992.40002441406, -1336.1700439453, 10.5, 0, 0, 357.99499511719);
(1649, 992.443359375, -1336.1715087891, 14.048554420471, 0, 0, 359.99450683594);
(1649, 996.62689208984, -1336.2213134766, 10.5, 0, 0, 0);
(1649, 1000.6799926758, -1336.4108886719, 10.5, 0, 0, 0);
(1649, 1005.0399780273, -1336.6044921875, 10.5, 0, 0, 0);
(1649, 1009.700012207, -1336.5256347656, 10.5, 0, 0, 0);

Thank-you!


Re: [Request] Need help scripting gates - [HiC]TheKiller - 01.08.2011

https://sampforum.blast.hk/showthread.php?tid=228465
https://sampforum.blast.hk/showthread.php?tid=175864
https://sampforum.blast.hk/showthread.php?tid=50303
https://sampforum.blast.hk/showthread.php?tid=248118
https://sampforum.blast.hk/showthread.php?tid=235799
https://sampforum.blast.hk/showthread.php?tid=60960
https://sampforum.blast.hk/showthread.php?tid=43930
https://sampforum.blast.hk/showthread.php?tid=133656
https://sampforum.blast.hk/showthread.php?tid=187713

Please search next time, seriously.


Re: [Request] Need help scripting gates - ThatGuyInThePurple - 01.08.2011

I just looked at every one of those links, and I have no clue where to start, and where to go.


Re: [Request] Need help scripting gates - Rafa - 02.08.2011

well its simple just u need to download zcmd cause im using that with all commands...

pawn Code:
CMD:fdgate 1(playerid,params[])
{
    MoveObject(playerid, x,y,z);
    return 1;
}

CMD:fdgate 2(playerid,params[])
{
    MoveObject(playerid, x,y,z);
    return 1;
}
CMD:fdgate 3(playerid,params[])
{
    MoveObject(playerid, x,y,z);
    return 1;
}

CMD:fdgate(playerid,params[])
{
    SendClientMessage(playerid,COLOR_RED,"Usage: /fdgate[1-5]");
    return 1;
}