25.05.2013, 09:41
Someone please help me! I get 4 errors in this:
Код:
Gate=CreateObject(971, -301.64, 1507.90, 77.91, 0.00, 0.00, 0.00); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/open", cmdtext, true, 10) ==0) if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xFF0000AA,"You can't use this command."); return 1; } MoveObject(Gate, -310.7321, 1507.9795, 77.9132 , 3); SendClientMessage(playerid, 0xAA3333AA," You opened the gate"); return 1; } if (strcmp("/close", cmdtext, true, 10) ==0) if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xFF0000AA,"You can't use this command."); return 1; } MoveObject(Gate, -301.6442, 1507.8981, 77.9132 , 3); SendClientMessage(playerid, 0xAA3333AA,"You closed the Gate"); return 1; }