11.04.2012, 20:35
isn't working on Strcmp y tried
the script is running but everyone can play music
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/radio", cmdtext, true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 1) ShowPlayerDialog(playerid, 102, DIALOG_STYLE_INPUT, "Radio System by GBLTeam","{FFFFFF}Write the {009BFF}URL{FFFFFF} from Radio Station:", "Okay", "Exit"); SendClientMessage(playerid,COLOR_GREEN,"Chouse some option what you need."); return 1; } return 0; } enum pInfo { pAdmin }; new PlayerInfo[MAX_PLAYERS][pInfo];