31.12.2010, 00:35
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/aopen", true) == 0) { if (IsPlayerAdmin(playerid)) { MoveObject(admingate, 1010.09375, 1844.1826171875, 15.902549743652, 2.0);// Last number is speed SendClientMessage(playerid, COLOR_RED, "The gate is open"); return 1; } } if(strcmp(cmdtext, "/aclose", true) == 0) { if (IsPlayerAdmin(playerid)) { MoveObject(admingate, 1010.09375, 1844.1826171875, 11.402549743652, 2.0); SendClientMessage(playerid, COLOR_RED, "The Gate Is closed Now"); return 1; } } return 0; }
Quote:
Post the code. |