12.05.2010, 20:20
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

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; }
Originally Posted by MatthewGarrowo
IsPlayerinRangeOfPoint(playerid, x, y, z); where do i put this i got the cords and how do i make it so my persons only got 1 gun in his hand instead of 2 like for the colt and the guns that you have to with i want it so its only 1
|
Originally Posted by MatthewGarrowo
i still dont understand.......
|