Script Name: Find Closest Player
Script Description Find the closest player to the id specified
Author: Rampage_Terranius (http://soldatcentral.com/index.php?page=profile&u=13)
Compile Test: (http://soldatcentral.com/images/pass.gif) Passed
Core Version: 2.6.3
Hosted by: Soldat Central - http://soldatcentral.com/ (http://soldatcentral.com/)
Full Description:
I needed to detect the closest id for a new script im making and since there isnt anything currently to do so i built this to do it it instead
now has an option to change search type
these are the types:
1 = all players count
2 = only Non team mates count
3 = only team mates count
Used like so:
FindClosestPlayer(id of player to find closest player to, type of search)
For example:
FindClosestPlayer(1, 1) will find the closest player to id 1 no matter what team they are
FindClosestPlayer(1, 2) will find the closest palyer who is not on the same team as id 1
FindClosestPlayer(1, 3) will find the closest team mate of id 1
(http://soldatcentral.com/images/download.gif) (http://soldatcentral.com/dl.php?id=55&act=1)
(Size 871 B)
- http://soldatcentral.com/index.php?page=script&f=55 -
** Script hosted by Soldat Central (http://soldatcentral.com/index.php?page=script&f=55)! Please visit the author's script page (http://soldatcentral.com/index.php?page=script&f=55) and Rate this script **
finally had time to fix this (was checking 2nd ids x instead of y) and got around to adding the types of searching id wanted to add like 2 weeks ago as usual if you find a bug please let me know