Replace :
PHP Code:
public client_disconnect(id) {
if (kz_bot)
if (get_playersnum(1) == 2)
mi_bot_disconnect()
return PLUGIN_CONTINUE
}
With :
PHP Code:
public client_disconnect(id)
{
if (kz_bot)
{
new iPlayers[32], iNum
get_players(iPlayers, iNum, "ch")
iNum-- // disconnected player is still counted, so decrement iNum
if(iNum >= 2)
{
mi_bot_disconnect()
}
}
}
Also, you should set kz_bot to false or 0 in mi_bot_disconnect
__________________