12.02.2011, 09:15
hello all, tommorow i very need auto gates good script, i try all tutorials, and nothing work, plz i vant copy auto gates script]
new gates; // Will create a var for the gates
public OnGameModeInit( ) // Gets called on GM start
{
CreateObect( ... ); //Creates the gates
return 1; // syncs
}
CMD:someopencommand( playerid, params[ ] ) // will open the gates, USES ZCMD
{
MoveObject( ... ); // Moves the object
return 1;
}
CMD:someclosecommand( playerid, params[ ] ) // will close the gates, USES ZCMD
{
MoveObject( ... )
return 1;
}