some question about ifisplayerinrangeofpoint
#1

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)
Reply
#2

PHP код:
if (IsPlayerInRangeOfPoint(playerid2.0296.5333, -38.39021001.5156)) {
        

Read the documentation next time.
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#3

thank you i will
Reply
#4

it dont work good it dont do anything i can buy on my spawn of server not only in gunshop
Reply
#5

i fixed it i dont type ! in front of is playerinrange of points lock
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)