SA-MP Forums Archive
i Need Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: i Need Help (/showthread.php?tid=528748)



i Need Help - Diti1 - 29.07.2014

Hey boys
Can one of you help me to make a little thing ??
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.
Thanks


Re: i Need Help - [XST]O_x - 29.07.2014

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;
}



Re: i Need Help - Beckett - 29.07.2014

Wiki would have been easier.