11.10.2014, 03:54
Please Someone Arrange this Command to Proper Order !
And I want this System in the above code-
So when a Player type command /guns a Message will show "You are not in the area" But if the player is in the Range Area he will get the guns dialog.
Код:
{ if (strcmp("/guns", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel"); return 1; } return 1; }
Код:
{ if(IsPlayerInRangeOfPoint(playerid, Range, My Coords X, Y, Z)) { SendClientMessage(playerid,0xFFFFFFFF,"You are not in the area"); } return 1; }