13.12.2013, 09:22
Try using:
And The Code Means:
IsPlayerInRangeOfPoint- Checks if the player is in rage of a specific point
playerid- Check the player's id
range- The furthest distance the player can be from the point to be in range.
X-The X coordinate of the point to check the range to
Y-The Y coordinate of the point to check the range to
Z-The Z coordinate of the point to check the range to
The returns should be:
1- true
0- false
Hope i helped
PHP код:
if(IsPlayerInRangeOfPoint(playerid, range, X, Y, Z); //change those range,Z,X,Y to ur coordinates!
IsPlayerInRangeOfPoint- Checks if the player is in rage of a specific point
playerid- Check the player's id
range- The furthest distance the player can be from the point to be in range.
X-The X coordinate of the point to check the range to
Y-The Y coordinate of the point to check the range to
Z-The Z coordinate of the point to check the range to
The returns should be:
1- true
0- false
Hope i helped
