View Single Post
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world :)
Old 12-02-2012 , 17:54   Re: Players Count/Alive Help?
Reply With Quote #6

Quote:
Originally Posted by Blizzard_87 View Post
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
(iPlayersiNum"be""TERRORIST OR CT"
For getting all connected players
PHP Code:
new iPlayers[32], iNum
get_players
(iPlayersiNum
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[]=""); 
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline