I have my weapon shop which is shown with /gunshop but i want to make it to be used only at ammunation or somewhere like this please if you need my pawn just PM me.
pawn Код:
public IsAtAmmunation(playerid)
{
//if(IsPlayerInRangeOfPoint(playerid, 5.0,286.800994,-82.547599,1001.515625) || IsPlayerInRangeOfPoint(playerid,5.0,YourCordinateX,YourCordinateY,YourCordinateZ))
// and this for other cordinates of other ammunations or where ever u want this menu to Appear and remove ) from the first one at the end or you would get an error Do it for each cordinate for each location you want..
// Where ever you want your dialogs to appear
if(IsPlayerInRangeOfPoint(playerid, 5.0,286.800994,-82.547599,1001.515625)) // This Location is Inside interior 4 at Cords 286.800994,-82.547599,1001.515625
{ return true; }
return false;
}