This will count any type of bot, not just podbot.
PHP Code:
new iT , iCT , iBots;
CountTeams( iT , iCT , iBots );
CountTeams(&TERRORISTS, &CTS, &BOTS)
{
TERRORISTS = 0
CTS = 0
BOTS = 0
new iPlayers[32], iNum , iPlayer
get_players(iPlayers, iNum, "h")
if( !iNum )
{
return
}
for ( new p = 0 ; p < iNum ; p++ )
{
iPlayer = iPlayers[ p ]
if ( is_user_bot( iPlayer ) )
++BOTS
switch( cs_get_user_team(iPlayer) )
{
case CS_TEAM_T:++TERRORISTS
case CS_TEAM_CT:++CTS
}
}
}
__________________