21.02.2009, 21:18
It works with:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/system7", cmdtext, true, 6) == 0) { if(mainigais == 0) { SendClientMessage(playerid, 0x33AA33AA,"The gate was opened"); MoveObject(baze, 1017.226563, -913.239319, 38.000492, 3); mainigais = 1; } else { SendClientMessage(playerid, 0xAA3333AA,"The gate was closed"); MoveObject(baze, 1017.226563, -913.239319, 43.000492, 3); mainigais = 0; } return 1; } return 0; }