04.03.2015, 19:35
i want to make this be one cmd : CMDpengate + CMD:closegate
PHP код:
CMD:opengate(playerid, params[])
{
MoveObject(gate, -1538.53125, 679.52631, 3.31538, 2.0);
SendClientMessage(playerid, COLOR_YELLOW, "Gate is Open.");
return 1;
}
CMD:closegate(playerid, params[])
{
MoveObject(gate, -1538.53125, 679.52631, 8.99330, 2.0);
SendClientMessage(playerid, COLOR_YELLOW, "Gate is Closed.");
return 1;
}