25.09.2015, 17:08
Put this under OnPlayerCommandText and remove #include <zcmd>
Код:
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");
}
}
}
}

