[Ajuda] Undefinid Symbol
#9

pawn Код:
#include <a_samp>


#define MAX_CONNECTIONS_FROM_IP 1



main()
    {
        print("\n----------------------------------");
        print(" FilterScript Anti-Bot Carregado!");
        print("----------------------------------\n");
    }


public OnPlayerConnect(playerid)
{
    new connecting_ip[32+1];
    GetPlayerIp(playerid,connecting_ip,32);
    new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);

    if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP)
    {
        printf("Ant-Bot: leitor de ligaзгo (% d) excedido% d conexхes IP de% s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
        Kick(playerid);
    }
    return 1;

}

stock GetNumberOfPlayersOnThisIP(test_ip[])
{
    new against_ip[32+1];
    new x = 0;
    new ip_count = 0;
    for(x=0; x<MAX_PLAYERS; x++)
    {
        if(IsPlayerConnected(x))
        {
            GetPlayerIp(x,against_ip,32);
            if(!strcmp(against_ip,test_ip)) ip_count++;
        }
    }
    return ip_count;
}
Reply


Messages In This Thread
Undefinid Symbol - by Lucas Ventura - 08.09.2012, 20:19
Re: Undefinid Symbol - by Coreia - 08.09.2012, 20:20
Re: Undefinid Symbol - by Lucas Ventura - 08.09.2012, 20:26
Re: Undefinid Symbol - by Rhayziin - 08.09.2012, 20:26
Re: Undefinid Symbol - by Lucas Ventura - 08.09.2012, 20:37
Re: Undefinid Symbol - by Lucas Ventura - 08.09.2012, 23:14
Re: Undefinid Symbol - by FenixBorn - 08.09.2012, 23:29
Re: Undefinid Symbol - by Lucas Ventura - 08.09.2012, 23:40
Re: Undefinid Symbol - by Bruno Alves - 08.09.2012, 23:54
Re: Undefinid Symbol - by Lucas Ventura - 09.09.2012, 00:08

Forum Jump:


Users browsing this thread: 1 Guest(s)