[AJUDA] Aqui please
#7

tente assim:

pawn Код:
//em OnPlayerConnect
checkip(playerid,pName(playerid));

//no final do gm:

stock pName(playerid)
{
    new nome[25];
    GetPlayerName(playerid,nome,sizeof(nome));
    return nome;
}


stock checkip(playerid,namep[])
{
    new string[64],ip[24];
    GetPlayerIp(playerid,ip,sizeof(ip));
    if(!fexist("Contas/IpsBanidos.ini")) return print("Arquivo nгo existe");
    new File:ban = fopen("Contas/IpsBanidos.ini", io_read);
    while(fread(ban, string))
    {
        if(!strcmp(string,ip,false))
        {
            SendClientMessage(playerid,-1,"Vocк estб banido, entre em contado com algum ADM.");
            Kick(playerid);
            printf("%s, tentou logar no server com ip banido. IP: %s",namep,ip);
        }
    }
    fclose(ban);
    return 1;
}
Lembre-se de criar, ou modificar o arquivo IpsBanidos.ini, pelo nome do seu arquivo de bans, assim como o caminho.
Reply


Messages In This Thread
[AJUDA] Aqui please - by BreakDriFT - 24.03.2012, 02:03
Re: [AJUDA] Aqui please - by Lucas_Alemao - 24.03.2012, 02:05
Re: [AJUDA] Aqui please - by BreakDriFT - 24.03.2012, 02:06
Re: [AJUDA] Aqui please - by Abravanel - 24.03.2012, 02:14
Re: [AJUDA] Aqui please - by Ricop522 - 24.03.2012, 02:15
Re: [AJUDA] Aqui please - by histire - 24.03.2012, 02:27
Re: [AJUDA] Aqui please - by steeldark - 24.03.2012, 04:33
Re: [AJUDA] Aqui please - by Ricop522 - 24.03.2012, 04:42
Re: [AJUDA] Aqui please - by BreakDriFT - 24.03.2012, 05:00

Forum Jump:


Users browsing this thread: 1 Guest(s)