23.12.2014, 10:26
The right usage of IsPlayerInRangeOfPoint:
You only need the range of the point, then x , y , z.
But I think the numbers you put after "2.98" aren't the right coordinates (x,y,z)
To get the coordinates:
Get in game at the place you want then type /save , then go to Documents > GTA > SAMP > savedpositions.txt.
You will find something like:
"0" is the player skin.
"-481.3712" is X.
"-220.6299" is Y.
"6.0043" is Z.
So, you need to copy the first three numbers after the "0".
I hope that I helped you.
pawn Код:
IsPlayerInRageOfPoint(playerid, Float:range, Float:x, Float:y, Float:z);
But I think the numbers you put after "2.98" aren't the right coordinates (x,y,z)
To get the coordinates:
Get in game at the place you want then type /save , then go to Documents > GTA > SAMP > savedpositions.txt.
You will find something like:
Код:
AddPlayerClass(0,-481.3712,-220.6299,974.7113,6.0043,0,0,0,0,0,0);
"-481.3712" is X.
"-220.6299" is Y.
"6.0043" is Z.
So, you need to copy the first three numbers after the "0".
I hope that I helped you.