12.05.2010, 20:26
Quote:
Originally Posted by MatthewGarrowo
I put in a gun shop in my server but i can type /buygun anywhere i want it so i can buy guns in the ammu nation how do i do this
![]() |
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/buygun", cmdtext, true, 11) == 0) if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z)) //example: if(IsPlayerInRangeOfPoint(playerid, 7.0, 291.8240,-83.3971,1001.5156)) { ShowPlayerDialog(playerid, 20320, DIALOG_STYLE_LIST, "Weapon Shop", "Melee weapons\nPistols\nShotguns\nSubmachine Guns\nAutomatic Rifles\nSpecials\nBombs\nHealth and Armour", "Select", "Exit"); return 1; }
Jeroen.