[AJUDA]bot nos server
#4

Quote:
Originally Posted by StrockerT
Посмотреть сообщение
cara onde eu coloco isso?
vc ira colocar isso no topo do GM

pawn Код:
new IP[MAX_PLAYERS][256];
new IPbot[MAX_PLAYERS][256];
e isso na public OnPlayerConnect
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
    }
}
Reply


Messages In This Thread
[AJUDA]bot nos server - by StrockerT - 26.02.2012, 20:15
Re: [AJUDA]bot nos server - by Caio_Freeze - 26.02.2012, 20:18
AW: [AJUDA]bot nos server - by StrockerT - 26.02.2012, 20:19
Re: AW: [AJUDA]bot nos server - by Caio_Freeze - 26.02.2012, 20:21
Re: [AJUDA]bot nos server - by Lucas_Alemao - 26.02.2012, 20:21
AW: [AJUDA]bot nos server - by StrockerT - 26.02.2012, 20:23
Re: AW: [AJUDA]bot nos server - by Caio_Freeze - 26.02.2012, 20:26
Re: [AJUDA]bot nos server - by Lucas_Alemao - 26.02.2012, 20:30
Re: [AJUDA]bot nos server - by Jonas_PG - 26.02.2012, 21:36
Re: [AJUDA]bot nos server - by Kmatsu - 26.02.2012, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)