11.10.2014, 11:07
This should work:
PHP код:
if (strcmp("/guns", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, Range, My Coords X, Y, Z))
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
}
else
{
SendClientMessage(playerid,0xFFFFFFFF,"-[ You are not in the area ]-");
}
return 1;
}