Quote:
Originally Posted by Blizzard_87
how could i change my code to work with get_players ?
|
For getting alive players for specific team
PHP Code:
new iPlayers[32], iNum
get_players(iPlayers, iNum, "be", "TERRORIST OR CT")
For getting all connected players
PHP Code:
new iPlayers[32], iNum
get_players(iPlayers, iNum)
PHP Code:
/* Sets indexes of players.
* Flags:
* "a" - don't collect dead players.
* "b" - don't collect alive players.
* "c" - skip bots.
* "d" - skip real players.
* "e" - match with team.
* "f" - match with part of name.
* "g" - ignore case sensitivity.
* "h" - skip HLTV.
* Example: Get all alive CTs: get_players(players,num,"ae","CT") */
native get_players(players[32], &num ,const flags[]="", const team[]="");
__________________