Try
PHP Code:
get_players_distance( origin , players , num , "aij" , id )
Quote:
Originally Posted by AntiBots
get_players_distance is a stock?
|
It's in the chr_engine include.
Code:
get_players_distance(const Float:origin[3],players[32], &num,flags[]="",index=0,team[]="")
/*
*
* Returns indexes of players in order according
* to how close they are to "origin". Indexes are
* stored in "players[32]" and the number of
* indexes returned is stored in num. team[] is
* used only if flag 'e' is passed.
*
* Flags:
* "a" - Don't return dead players
* "b" - Don't return alive players
* "c" - Skip bots
* "d" - Skip real players
* "e" - Match with passed team
* "h" - Skip HLTV
* "i" - Is in Viewcone
* "j" - Is Visible
*
* If flag 'i' is passed, you must specify into
* variable "index" who's viewcone to check if
* the returned players are in.
*
*/
__________________