Quote:
Originally Posted by Super_Panda
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/takeneon", true)==0) { if(IsPlayerAdmin(playerid)) { if(IsPlayerInAnyVehicle(playerid)) { ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nSpecial[Red]\nSpecial[Green]\nSpecial[Blue]\nDellete Neon[By:wizzi]", "Select", "Cancel"); } return 1; } return 0; }
|
Be careful.
IsPlayerAdmin(); checks if a player is logged in into RCON.