Bot atack
#4

Quote:
Originally Posted by 101
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) {
        new ip_addr_npc[64+1];
        new ip_addr_server[64+1];
        GetServerVarAsString("bind",ip_addr_server,64);
        GetPlayerIp(playerid,ip_addr_npc,64);
       
        if(!strlen(ip_addr_server)) {
            ip_addr_server = "127.0.0.1";
        }
       
        if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) {
            // this bot is remote connecting
            printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc);
            Kick(playerid);
            return 0;
        }
        printf("NPC: Connection from %s is allowed.",ip_addr_npc);
    }
   
    return 1;
}
Maybe, this? Will work?
i will try... but is a invisible bot.. not npc..I hope to work that
Reply


Messages In This Thread
Bot atack - by zdog - 26.02.2011, 19:12
Re: Bot atack - by 101 - 26.02.2011, 19:19
Re: Bot atack - by woot - 26.02.2011, 19:34
Re: Bot atack - by zdog - 26.02.2011, 19:46
Re: Bot atack - by 101 - 27.02.2011, 00:18
Re: Bot atack - by Unknown123 - 27.02.2011, 00:44
Re: Bot atack - by Calgon - 27.02.2011, 03:07
Re: Bot atack - by 101 - 27.02.2011, 14:13
Re: Bot atack - by SkizzoTrick - 28.02.2011, 15:59
Re: Bot atack - by Unknown123 - 28.02.2011, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)