16.11.2013, 12:14
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Get the player's position that types the command and loop through the connected players (foreach is recommended). Check if each player (from the loop) is in range of point (by using the function above) and edit the range to 15 and the position of the player who typed the command. The 1st parameter would be the ID of the player (the number you loop). So if they're in range, show the message.
Get the player's position that types the command and loop through the connected players (foreach is recommended). Check if each player (from the loop) is in range of point (by using the function above) and edit the range to 15 and the position of the player who typed the command. The 1st parameter would be the ID of the player (the number you loop). So if they're in range, show the message.