[Pedido] Proteзгo contra divulguer IP.
#4

pawn Код:
#include <a_samp>

#define kIP1 "192."
#define kIP2 "216."
#define kIP3 "255."
//e coloca todos os que quiser

new
    Jogador[MAX_PLAYER_NAME],
    sStringFrm[128];

public OnPlayerText(playerid, text[])
{
    if(strfind(text, kIP1, true) != -1 || strfind(text, kIP2, true) != -1 || strfind(text, kIP3, true) != -1)
    {
        GetPlayerName(playerid, Jogador, sizeof(Jogador));
        format(sStringFrm, sizeof(sStringFrm), "%s tentou divulgar um Ip. IP: %s", Jogador, text);
        for(new x = 0; x <= GetMaxPlayers(); x++)
        {
            if(IsPlayerAdmin(x) && IsPlayerConnected(x))
            {
                SendClientMessage(x, 0xFFF000AA, sStringFrm);
                SendClientMessage(x, 0xFFF000AA, "Tome providкncias para isto nгo voltar a acontecer!");
            }
        }
        return false;
    }
    return true;
}
http://pastebin.com/yvGHTgyj

Antes de postar tive o cuidado de testar. ESTБ FUNCIONAL. (:
Reply


Messages In This Thread
Proteзгo contra divulguer IP. - by Ley - 05.07.2013, 03:12
Re: Proteзгo contra divulguer IP. - by Standby - 05.07.2013, 03:30
Re: Proteзгo contra divulguer IP. - by Ley - 05.07.2013, 04:55
Re: Proteзгo contra divulguer IP. - by Knight97 - 05.07.2013, 10:50
Re : Proteзгo contra divulguer IP. - by ThiagoMK - 05.07.2013, 16:28
Re: Proteзгo contra divulguer IP. - by smiiir - 05.07.2013, 16:35
Re: Proteзгo contra divulguer IP. - by Gii - 05.07.2013, 20:27
Re: Proteзгo contra divulguer IP. - by smiiir - 05.07.2013, 22:06
Re: Proteзгo contra divulguer IP. - by StrondA_ - 05.07.2013, 23:05

Forum Jump:


Users browsing this thread: 2 Guest(s)