some question about ifisplayerinrangeofpoint - 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: some question about ifisplayerinrangeofpoint (
/showthread.php?tid=662023)
some question about ifisplayerinrangeofpoint -
Deken - 21.12.2018
hello i have one question i get my addplayerclass in interior i need it for gunshop command and now how to make it that player need to be near 1-2 m from that position to buy guns
here is the code
pawn Код:
AddPlayerClass(26,296.5333,-38.3902,1001.5156,180.0000,0,0,0,0,0,0);
i dont need full command only this if(isplayerinrangeofpoint(playerid)
Re: some question about ifisplayerinrangeofpoint -
d1git - 21.12.2018
PHP код:
if (IsPlayerInRangeOfPoint(playerid, 2.0, 296.5333, -38.3902, 1001.5156)) {
}
Read the documentation next time.
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Re: some question about ifisplayerinrangeofpoint -
Deken - 21.12.2018
thank you i will
Re: some question about ifisplayerinrangeofpoint -
Deken - 21.12.2018
it dont work good it dont do anything i can buy on my spawn of server not only in gunshop
Re: some question about ifisplayerinrangeofpoint -
Deken - 21.12.2018
i fixed it i dont type ! in front of is playerinrange of points lock