[B]Help auto gates[B]
#1

hello all, tommorow i very need auto gates good script, i try all tutorials, and nothing work, plz i vant copy auto gates script]
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)