16.03.2009, 02:08
When I click compile, it says Pawn Compiler has Stopped Working.
Code:
EDIT: The reason why If Admin = 1337 is there is because if someone else goes on with the name FrazZ and uses the command, they can open it... but with the admin thing they can't.
Code:
Код:
//-------------------------------[FrazZ's Gate]--------------------------------- if(strcmp(cmd, "/fgateopen", true) == 0) { // Edit the /eup to your elevator command. if (PlayerInfo[playerid][pAdmin] >= 1337) new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); if(strcmp(name,"FrazZ",true) == 0) MoveObject(frazzgate,1535.32,-1451.32,9.70,2.00); // Put your cords in here } else { SendClientMessage(playerid, COLOR_RED, "No"); } return 1; } if(strcmp(cmd, "/fgateclose", true) == 0) { // Same deal as before if (PlayerInfo[playerid][pAdmin] >= 1337) new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); if(strcmp(name,"FrazZ",true) == 0) MoveObject(frazzgate,1535.32,-1451.32,15.00,2.00); // Same deal as before } else { SendClientMessage(playerid, COLOR_RED, "No"); } return 1; }