25.09.2015, 17:41
It should look something like this:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext,"/buylicense",true)) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLevel] >= 3) return SendClientMessage(playerid, COLOR_WHITE, "Trebuie sa ai level 3+."); { if(IsPlayerInRangeOfPoint(playerid, 4.0,359.1557,183.0690,1008.3828)) { ShowPlayerDialog(playerid, DIALOG_AGL, DIALOG_STYLE_LIST, "What do you want?", "Weapon\nFlying\nBoat\nFishing\nMats\nSailing", "OK", "Close"); } else { SendClientMessage(playerid, COLOR_WHITE, "Nu esti la locul potrivit pentru a folosi aceasta comanda. Tasteaza /gps si alege locul licentelor"); } } } return 1; } return 0; }