26.02.2012, 20:21
vc ira colocar isso no topo do GM
e isso na public OnPlayerConnect
pawn Код:
new IP[MAX_PLAYERS][256];
new IPbot[MAX_PLAYERS][256];
pawn Код:
for(new i; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i,IP[playerid],256);
GetPlayerIp(playerid,IPbot[playerid],256);
if(i == playerid) return 0; //pra nгo banir uma pessoa que nгo criou bots :)
if(strcmp(IP[ i],IPbot[playerid], true) == 0) {
Ban(playerid); //bani os bots
Ban(i); //bani o criador dos bots
}
}