I definitely didn't understand it:
PHP Code:
#if AMXX_VERSION_NUM <183;
g_iHeadcount = get_maxplayers ()
#else
g_iHeadcount = get_playersnum_ex (GetPlayersFlags: GetPlayers_ExcludeBots)
#endif
get_maxplayers () is the result of the total slots on the server (if it is 32 slots, get_maxplayers = 32, however, get_playersnum_ex () returns the number of players on the server, this does not make any sense.
And why are you checking if the player is connected if you are not using any action on it, just the server?
__________________