[B]Help auto gates[B] - 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: [B]Help auto gates[B] (
/showthread.php?tid=224706)
[B]Help auto gates[B] -
Hell_Unit - 12.02.2011
hello all, tommorow i very need auto gates good script, i try all tutorials, and nothing work, plz i vant copy auto gates script]
Re: [B]Help auto gates[B] -
Mean - 12.02.2011
pawn Код:
new gates; // Will create a var for the gates
pawn Код:
public OnGameModeInit( ) // Gets called on GM start
{
CreateObect( ... ); //Creates the gates
return 1; // syncs
}
After. In some command:
pawn Код:
CMD:someopencommand( playerid, params[ ] ) // will open the gates, USES ZCMD
{
MoveObject( ... ); // Moves the object
return 1;
}
pawn Код:
CMD:someclosecommand( playerid, params[ ] ) // will close the gates, USES ZCMD
{
MoveObject( ... )
return 1;
}
Hope it helps
EDIT: Please don't copy-pasta the code, edit it! You can't use ... in the MoveObject and stuff.