Quote:
Originally Posted by Torge
That's just example, I didn't said that he must use it.
|
Taken from amxmodx.inc:
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[]="");
It has more info than your and he might learn something from it.
Quote:
Originally Posted by nikhilgupta345
What are you saying? That doesn't even make sense...
get_playersnum() is perfectly fine since he doesn't need the actual list of players.
|
This is also true didn't pay any attention to that. You might also want to check get_playersnum() in connect/disconnect forwards.
__________________