[Ajuda] [FS] Meu Ant-Hacker
#1

Bom Galera Ja to sem opзгo ja!!!

To com esse fs ele compila normal mais o arquivo .amx fica 0 bytes queria q alguem podesse me ajduar a faze ele funcionar sem dar bugs no meu sv obrigado desde ja quem me ajudar dou REP ++++

MEU FS
pawn Код:
#include <a_samp>
#include <utils>
#include <gl_common>

#define ColorFlood 0x24B1DBAA
#define TimerFlood 3500
#define AlertFlood 4
#define Banir   0
#define Kickar  1
#define COLOR_AZUL 0x0019FFFF
#define MSGPLAYER SendClientMessage
#define COLOR_TIGER 0xFF0A00FF
#define FILTERSCRIPT
#define RONALDO_LOL 432

new TimerFDP;
forward FDP(playerid);
new IP[432][] =
{
":7798",
":7777",
":7778",
":7776",
":7775",
":7774",
":7773",
":7772",
":7771",
":7770",
":5555",
":8888",
":8090",
":6969",
":7780",
":7781",
":7782",
":7783",
":7784",
":7785",
":7786",
":7787",
":7788",
":7789",
":7790",
":7791",
":7792",
":7793",
":7794",
":7795",
":7796",
":7797",
":7798",
":7799",
":7800",
"127.",
"189.",
"188.",
"198.",
"199.",
"171.",
"211.",
"64.",
"66.",
"68.",
"67.",
"65.",
"183.",
"187.",
"201.",
"211.",
"200.",
"141.",
"217.",
"213.",
"80.",
"8080.",
"127 .",
"189 .",
"188 .",
"198 .",
"199 .",
"171 .",
"211 .",
"64 .",
"66 .",
"68 .",
"67 .",
"65 .",
"183 .",
"187 .",
"201 .",
"211 .",
"200 .",
"141 .",
"217 .",
"213 .",
"80 .",
"8080 .",
"189.1.169",
"35:7777",
"1.169.35",
"189.1",
"88",
"77",
"7777",
"7 7",
"8 8",
"189.1.169.35:7777",
"200.",
"200 .",
"189.",
"189 .",
"201.",
"201 .",
"200.1",
"200.1",
"200 . 1",
"200. 1",
"200 .1",
"201.1",
"201 . 1",
"201. 1",
"201 .1",
"208.1",
"208. 1",
"208 .1",
"208 . 1",
"69.1",
"69. 1",
"69 . 1",
"69 .1",
"189.1",
"189. 1",
"189 .1",
"189 . 1",
"66.7",
"66. 7",
"66 .7",
"66 . 7",
"177.1",
"177. 1",
"177 .1",
"177 . 1",
"109 .",
"115 .",
"119 .",
"128 .",
"133 .",
"140 .",
"149 .",
"65 .",
"32 .",
"66 .",
":3127",
"150 .",
"156 .",
"167 .",
"173 .",
"174 .",
"184 .",
"187 .",
"189 .",
"193 .",
"195 .",
"198 .",
"199 .",
"200 .",
"201 .",
"202 .",
"203 .",
"204 .",
"205 .",
"206 .",
"209 .",
"210 .",
"212 .",
"213 .",
"218 .",
"219 .",
"41 .",
"46 .",
"58 .",
"59 .",
"61 .",
"70 .",
"72 .",
"75 .",
"77 .",
"78 .",
"79 .",
"80 .",
"83 .",
"84 .",
"85 .",
"87 .",
"92 .",
"94 .",
"95 .",
"98 .",
"99 .",
"124 .",
"256 .",
"512 .",
"102 .",
":3128",
"211 .",
"194 .",
"202 .",
"146 .",
"169 .",
"195 .",
"152 .",
"222 .",
"83 .",
"221 .",
"211 .",
"134 .",
"110 .",
"8 .",
"164 .",
"109-",
"115-",
"119-",
"128-",
"133-",
"140-",
"149-",
"65-",
"32-",
"66-",
":3127",
"150-",
"156-",
"167-",
"173-",
"174-",
"184-",
"187-",
"189-",
"193-",
"195-",
"198-",
"199-",
"200-",
"201-",
"202-",
"203-",
"204-",
"205-",
"206-",
"209-",
"210-",
"212-",
"213-",
"218-",
"219-",
"41-",
"46-",
"58-",
"59-",
"61-",
"70-",
"72-",
"75-",
"77-",
"78-",
"79-",
"80-",
"83-",
"84-",
"85-",
"87-",
"92-",
"94-",
"95-",
"98-",
"99-",
"124-",
"256-",
"512-",
"102-",
":3128",
"211-",
"194-",
"202-",
"146-",
"169-",
"195-",
"152-",
"222-",
"83-",
"221-",
"211-",
"134-",
"110-",
"8-",
"164-",
"109.",
"115.",
"119.",
"128.",
"133.",
"140.",
"149.",
"65.",
"32.",
"66.",
":3127",
"150.",
"156.",
"167.",
"173.",
"174.",
"184.",
"187.",
"189.",
"193.",
"195.",
"198.",
"199.",
"200.",
"201.",
"202.",
"203.",
"204.",
"205.",
"206.",
"209.",
"210.",
"212.",
"213.",
"218.",
"219.",
"41.",
"46.",
"58.",
"59.",
"61.",
"70.",
"72.",
"75.",
"77.",
"78.",
"79.",
"80.",
"83.",
"84.",
"85.",
"87.",
"92.",
"94.",
"95.",
"98.",
"99.",
"124.",
"256.",
"512.",
"102.",
":3128",
"211.",
"194.",
"202.",
"146.",
"169.",
"195.",
"152.",
"222.",
"83.",
"221.",
"211.",
"134.",
"110.",
"8.",
"164.",
"109  .",
"115  .",
"119  .",
"128  .",
"133  .",
"140  .",
"149  .",
"65  .",
"32  .",
"66  .",
":3127",
"150  .",
"156  .",
"167  .",
"173  .",
"174  .",
"184  .",
"187  .",
"189  .",
"193  .",
"195  .",
"198  .",
"199  .",
"200  .",
"201  .",
"202  .",
"203  .",
"204  .",
"205  .",
"206  .",
"209  .",
"210  .",
"212  .",
"213  .",
"218  .",
"219  .",
"41  .",
"46  .",
"58  .",
"59  .",
"61  .",
"70  .",
"72  .",
"75  .",
"77  .",
"78  .",
"79  .",
"80  .",
"83  .",
"84  .",
"85  .",
"87  .",
"92  .",
"94  .",
"95  .",
"98  .",
"99  .",
"124  .",
"256  .",
"512  .",
"102  .",
":3128",
"211  .",
"194  .",
"202  .",
"146  .",
"169  .",
"195  .",
"152  .",
"222  .",
"83  .",
"221  .",
"211  .",
"134  .",
"110  .",
"8  .",
"164  ."
};

forward SBan(playerid, string[], string2[]);

stock Poderoso_Tiger(playerid)
{
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    return Name;
}

new NicksProibidos[][MAX_PLAYER_NAME]  ={
"com1","com2","com3","com4","com5","com6","com7","com8","com9","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6","lpt7",
"lpt8","lpt9","clock$","prn","nul","con","CON","con","con1","aux","aux1","prn","PRN","AUX","BPF","BPP","BRP","BPG","BPL","Server_Lixao","jonas_OwNer","Thiago_Street","crashar_servidor","Crashar_Servidor","com1.aux.com.ipt3"
};

enum IPs
{
    IP[16],
    Option
};

new PlayerIP[][IPs] =
{
    {"201.50.20.80", Kickar},
    {"200.138.69.245", Kickar},
    {"192.168.1.4", Kickar},
    {"5.83.150.194", Kickar}
};

new FloodAlert[MAX_PLAYERS],
    FloodTimer[MAX_PLAYERS];
forward RemoveFlood(playerid);

public OnFilterScriptInit()
{
    print(",    Filter Script    .");
    print("| Sistema Anti Hacker |");
    print("`    By: Caio_Freeze    ґ");
    return 1;
}

public OnFilterScriptExit()
{
    print(",    Filter Script    .");
    print("| Sistema Anti Hacker |");
    print("`    By: Caio_Freeze    ґ");
    return 1;
}

public OnPlayerConnect(playerid)
{
    new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s",name);
    for(new fdp=0;fdp<RONALDO_LOL;fdp++){
        if(strfind(string, IP[fdp], true) != -1)
        {
            new string2[128];
            new PlayerName[30];
            GetPlayerName(playerid, PlayerName, 30);
            format(string2, sizeof(string2), "%s Foi kickado Pelo BOT Por Tentar Divulgar Outro Servidor!",PlayerName);
            SendClientMessageToAll(0xFF0000AA, string2);
            SpawnPlayer(playerid);
            SetPlayerPos(playerid, 1,1,1);
            TimerFDP = SetTimerEx("FDP", 2000, 0, "i", playerid);
            return 0;
        }
    }
    SendClientMessage(playerid, 0x00FF00AA, "[BVL] Este Servidor Usa Anti-Divulgador Criado Por Caio_Freeze");
    SendClientMessage(playerid, 0x00FF00AA, "[BVL]Favor Nгo Divulgue Outro Server. Obrigado!");
    return 1;
}
    for(new i; i<sizeof(NicksProibidos); i++)
    {
        if(strcmp(NicksProibidos[i],Poderoso_Tiger(playerid),true)==0)
        {
            MSGPLAYER(playerid,COLOR_TIGER,"Seu Nome e Proibido e Nгo e Permitido Para o Brasil Virtual Life");
            MSGPLAYER(playerid,COLOR_TIGER,"E Por Causa Disso Vocк Foi Banido !! :)");
            Ban(i);
        }
    }
    new ip[16];
    GetPlayerIp(playerid, ip, 16);
    for(new i = 0; i < sizeof PlayerIP; i++)
    {
        if(strfind(ip, PlayerIP[i][IP], true) != -1)
        {
            if(strlen(ip) == strlen(PlayerIP[i][IP]))
            {
                if(PlayerIP[i][Option] == Banir)
                {
                    SendClientMessage(playerid, 0xFFFFFFFF, "** Vocк foi Banido(a) Pelo Sistema Anti-Hacker By: Caio_Freeze.");
                    Ban(playerid);
                }
                else if(PlayerIP[i][Option] == Kickar)
                {
                    SendClientMessage(playerid, 0xFFFFFFFF, "** Vocк foi Kickado(a) Pelo Sistema Anti-Hacker By: Caio_Freeze.");
                    Kick(playerid);
                }
                break;
            }
        }
    }
    FloodAlert[playerid] = 0; FloodTimer[playerid] = 0;
    SendClientMessage(playerid, ColorFlood, "[Anti-Flood] Este server Possui Anti-Flood!!");
    return 1;
}

stock Poderoso_TigerOwna(result[])
{
    if(strfind(PlayerName(i), "[", true) != -1 || strfind(PlayerName(i), "]", true) != -1)
    {
        SendClientMessage(i, -1, "Seu Nick nгo deve conter Conchetes ( [ ] )");
        Kick(i);
    }
}

stock Nome(playerid)
{
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    return Nome;
}
public OnPlayerText(playerid, text[])
{
    new string[256];
    for(new fdp=0;fdp<RONALDO_LOL;fdp++){
        if(strfind(text, IP[fdp], true) != -1)
        {
            new string2[128];
            new PlayerName[30];
            GetPlayerName(playerid, PlayerName, 30);
            format(string2, sizeof(string2), "%s Foi kickado Pelo BOT Por Tentar Divulgar Divulgar Outro Servidor!",PlayerName);
            SendClientMessageToAll(0xFF0000AA, string2);
            new nomefdp[30], ipdivulgado[512], ipfdp[128], iplolol[128];
            GetPlayerIp(playerid,iplolol,128);
            GetPlayerName(playerid, nomefdp, 30);
            format(ipdivulgado, 256, "%s", text);
            format(ipfdp, 256, "%s", iplolol);
            new File:ofdp=fopen("divulgadores.txt", io_append);
            new iFDP = strval(ipfdp);
            format(string, 256, "Nome Do FDP: %s - Ip Divulgado: %s - Ip do FDP: %s \n", nomefdp, ipdivulgado, iFDP);
            fwrite(ofdp, string);
            print(string);
            fclose(ofdp);
            SetPlayerPos(playerid, 1,1,1);
            TimerFDP = SetTimerEx("FDP", 2000, 0, "i", playerid);
            return 0;
        }
    }
    return 1;
}
    new string[126];
    KillTimer(FloodTimer[playerid]);
    FloodTimer[playerid] = SetTimerEx("RemoveFlood", TimerFlood, 0, "i", playerid);
    FloodAlert[playerid] ++;
    if(FloodAlert[playerid] > 1 && FloodAlert[playerid] < AlertFlood-1)
    {
        format(string, sizeof(string), "[Anti-Flood] Vocк tem {FFFF00}%d/%d{24B1DB} avisos.", FloodAlert[playerid], AlertFlood);
        SendClientMessage(playerid, ColorFlood, string);
    }
    if(FloodAlert[playerid] == AlertFlood-1)
    {
        format(string, sizeof(string), "[Anti-Flood] Vocк tem {FFFF00}%d/%d{24B1DB} avisos. Mais um e vocк serб Kickado.", FloodAlert[playerid], AlertFlood);
        SendClientMessage(playerid, ColorFlood, string);
    }
    if(FloodAlert[playerid] == AlertFlood)
    {
        format(string, sizeof(string), "[Anti-Flood] Vocк tem {FFFF00}%d/%d{24B1DB} avisos. Vocк foi Kickado.", FloodAlert[playerid], AlertFlood);
        SendClientMessage(playerid, ColorFlood, string);
        Kick(playerid);
        new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "[Anti-Flood] {FFFF00}%s{24B1DB} foi kickado por Flood.", pname);
        SendClientMessageToAll(ColorFlood, string);
        return 0;
    }
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new string[256];
    for(new fdp=0;fdp<RONALDO_LOL;fdp++){
        if(strfind(cmdtext, IP[fdp], true) != -1)
        {
            new string2[128];
            new PlayerName[30];
            GetPlayerName(playerid, PlayerName, 30);
            format(string2, sizeof(string2), "%s Foi kickado Pelo BOT Por Tentar Divulgar Divulgar Outro Servidor!",PlayerName);
            SendClientMessageToAll(0xFF0000AA, string2);

            new nomefdp[30], ipdivulgado[512], ipfdp[128], iplolol[128];
            GetPlayerIp(playerid,iplolol,128);
            GetPlayerName(playerid, nomefdp, 30);
            format(ipdivulgado, 256, "%s", cmdtext);
            format(ipfdp, 256, "%s", iplolol);
            new File:ofdp=fopen("divulgadores.txt", io_append);
            new iFDP = strval(ipfdp);
            format(string, 256, "Nome Do FDP: %s - Ip Divulgado: %s - Ip do FDP: %s \n", nomefdp, ipdivulgado, iFDP);
            fwrite(ofdp, string);
            print(string);
            fclose(ofdp);

            SetPlayerPos(playerid, 1,1,1);
            TimerFDP = SetTimerEx("FDP", 2000, 0, "i", playerid);

            return 0;
        }
    }
    return 0;
}
public FDP(playerid)
{
    Kick(playerid);
    KillTimer(TimerFDP);
    return 1;
}
    new comando[126],
    string[256],
    pname[MAX_PLAYER_NAME];
    if(!strcmp("/resetarflood", comando, true))
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, ColorFlood, "[Anti-Flood] Vocк nгo й Admin RCON.");
        new resposta[MAX_PLAYER_NAME];
        if(!strlen(resposta)) return SendClientMessage(playerid, ColorFlood, "[Anti-Flood] /ResetarFlood [PlayerID/NOME]");
        new player = ReturnUser(resposta);
        if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, ColorFlood, "[Anti-Flood] Jogador Nгo Conectado.");
        GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "[Anti-Flood] {FFFF00}%s{24B1DB} resetou o seu Flood.", pname);
        SendClientMessage(player, ColorFlood, string);
        FloodAlert[player] = 0;
        GetPlayerName(player, pname, sizeof(pname));
        format(string, sizeof(string), "[Anti-Flood] Vocк resetou o Flood de {FFFF00}%s{24B1DB}.", pname);
        SendClientMessage(playerid, ColorFlood, string);
        return 1;
    }
    return 0;
}

public RemoveFlood(playerid)
{
    KillTimer(FloodTimer[playerid]);
    FloodAlert[playerid] = 0;
    return 1;
}
No Fs Tem :
Anti-Bot
Anti-IP
Anti-Divulguer
Anti-Flood
Anti-Nick
Anti-Tag
Reply
#2

aff me ajudem por favorrrr praciso da ajuda de vcs!
Reply
#3

Nгo soh corrigi como tirei todos os erros tbm.

pawn Код:
#include <a_samp>
#include <utils>
#include <gl_common>

#define ColorFlood 0x24B1DBAA
#define TimerFlood 3500
#define AlertFlood 4
#define Banir   0
#define Kickar  1
#define COLOR_AZUL 0x0019FFFF
#define MSGPLAYER SendClientMessage
#define COLOR_TIGER 0xFF0A00FF
#define FILTERSCRIPT
#define RONALDO_LOL 432

new TimerFDP;
forward FDP(playerid);
new IP[432][] =
{
":7798",
":7777",
":7778",
":7776",
":7775",
":7774",
":7773",
":7772",
":7771",
":7770",
":5555",
":8888",
":8090",
":6969",
":7780",
":7781",
":7782",
":7783",
":7784",
":7785",
":7786",
":7787",
":7788",
":7789",
":7790",
":7791",
":7792",
":7793",
":7794",
":7795",
":7796",
":7797",
":7798",
":7799",
":7800",
"127.",
"189.",
"188.",
"198.",
"199.",
"171.",
"211.",
"64.",
"66.",
"68.",
"67.",
"65.",
"183.",
"187.",
"201.",
"211.",
"200.",
"141.",
"217.",
"213.",
"80.",
"8080.",
"127 .",
"189 .",
"188 .",
"198 .",
"199 .",
"171 .",
"211 .",
"64 .",
"66 .",
"68 .",
"67 .",
"65 .",
"183 .",
"187 .",
"201 .",
"211 .",
"200 .",
"141 .",
"217 .",
"213 .",
"80 .",
"8080 .",
"189.1.169",
"35:7777",
"1.169.35",
"189.1",
"88",
"77",
"7777",
"7 7",
"8 8",
"189.1.169.35:7777",
"200.",
"200 .",
"189.",
"189 .",
"201.",
"201 .",
"200.1",
"200.1",
"200 . 1",
"200. 1",
"200 .1",
"201.1",
"201 . 1",
"201. 1",
"201 .1",
"208.1",
"208. 1",
"208 .1",
"208 . 1",
"69.1",
"69. 1",
"69 . 1",
"69 .1",
"189.1",
"189. 1",
"189 .1",
"189 . 1",
"66.7",
"66. 7",
"66 .7",
"66 . 7",
"177.1",
"177. 1",
"177 .1",
"177 . 1",
"109 .",
"115 .",
"119 .",
"128 .",
"133 .",
"140 .",
"149 .",
"65 .",
"32 .",
"66 .",
":3127",
"150 .",
"156 .",
"167 .",
"173 .",
"174 .",
"184 .",
"187 .",
"189 .",
"193 .",
"195 .",
"198 .",
"199 .",
"200 .",
"201 .",
"202 .",
"203 .",
"204 .",
"205 .",
"206 .",
"209 .",
"210 .",
"212 .",
"213 .",
"218 .",
"219 .",
"41 .",
"46 .",
"58 .",
"59 .",
"61 .",
"70 .",
"72 .",
"75 .",
"77 .",
"78 .",
"79 .",
"80 .",
"83 .",
"84 .",
"85 .",
"87 .",
"92 .",
"94 .",
"95 .",
"98 .",
"99 .",
"124 .",
"256 .",
"512 .",
"102 .",
":3128",
"211 .",
"194 .",
"202 .",
"146 .",
"169 .",
"195 .",
"152 .",
"222 .",
"83 .",
"221 .",
"211 .",
"134 .",
"110 .",
"8 .",
"164 .",
"109-",
"115-",
"119-",
"128-",
"133-",
"140-",
"149-",
"65-",
"32-",
"66-",
":3127",
"150-",
"156-",
"167-",
"173-",
"174-",
"184-",
"187-",
"189-",
"193-",
"195-",
"198-",
"199-",
"200-",
"201-",
"202-",
"203-",
"204-",
"205-",
"206-",
"209-",
"210-",
"212-",
"213-",
"218-",
"219-",
"41-",
"46-",
"58-",
"59-",
"61-",
"70-",
"72-",
"75-",
"77-",
"78-",
"79-",
"80-",
"83-",
"84-",
"85-",
"87-",
"92-",
"94-",
"95-",
"98-",
"99-",
"124-",
"256-",
"512-",
"102-",
":3128",
"211-",
"194-",
"202-",
"146-",
"169-",
"195-",
"152-",
"222-",
"83-",
"221-",
"211-",
"134-",
"110-",
"8-",
"164-",
"109.",
"115.",
"119.",
"128.",
"133.",
"140.",
"149.",
"65.",
"32.",
"66.",
":3127",
"150.",
"156.",
"167.",
"173.",
"174.",
"184.",
"187.",
"189.",
"193.",
"195.",
"198.",
"199.",
"200.",
"201.",
"202.",
"203.",
"204.",
"205.",
"206.",
"209.",
"210.",
"212.",
"213.",
"218.",
"219.",
"41.",
"46.",
"58.",
"59.",
"61.",
"70.",
"72.",
"75.",
"77.",
"78.",
"79.",
"80.",
"83.",
"84.",
"85.",
"87.",
"92.",
"94.",
"95.",
"98.",
"99.",
"124.",
"256.",
"512.",
"102.",
":3128",
"211.",
"194.",
"202.",
"146.",
"169.",
"195.",
"152.",
"222.",
"83.",
"221.",
"211.",
"134.",
"110.",
"8.",
"164.",
"109  .",
"115  .",
"119  .",
"128  .",
"133  .",
"140  .",
"149  .",
"65  .",
"32  .",
"66  .",
":3127",
"150  .",
"156  .",
"167  .",
"173  .",
"174  .",
"184  .",
"187  .",
"189  .",
"193  .",
"195  .",
"198  .",
"199  .",
"200  .",
"201  .",
"202  .",
"203  .",
"204  .",
"205  .",
"206  .",
"209  .",
"210  .",
"212  .",
"213  .",
"218  .",
"219  .",
"41  .",
"46  .",
"58  .",
"59  .",
"61  .",
"70  .",
"72  .",
"75  .",
"77  .",
"78  .",
"79  .",
"80  .",
"83  .",
"84  .",
"85  .",
"87  .",
"92  .",
"94  .",
"95  .",
"98  .",
"99  .",
"124  .",
"256  .",
"512  .",
"102  .",
":3128",
"211  .",
"194  .",
"202  .",
"146  .",
"169  .",
"195  .",
"152  .",
"222  .",
"83  .",
"221  .",
"211  .",
"134  .",
"110  .",
"8  .",
"164  ."
};

forward SBan(playerid, string[], string2[]);

stock Poderoso_Tiger(playerid)
{
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    return Name;
}

new NicksProibidos[][MAX_PLAYER_NAME]  ={
"com1","com2","com3","com4","com5","com6","com7","com8","com9","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6","lpt7",
"lpt8","lpt9","clock$","prn","nul","con","CON","con","con1","aux","aux1","prn","PRN","AUX","BPF","BPP","BRP","BPG","BPL","Server_Lixao","jonas_OwNer","Thiago_Street","crashar_servidor","Crashar_Servidor","com1.aux.com.ipt3"
};

enum IPs
{
    IPz[16],
    Option
};

new PlayerIP[][IPs] =
{
    {"201.50.20.80", Kickar},
    {"200.138.69.245", Kickar},
    {"192.168.1.4", Kickar},
    {"5.83.150.194", Kickar}
};

new FloodAlert[MAX_PLAYERS],
    FloodTimer[MAX_PLAYERS];
forward RemoveFlood(playerid);

public OnFilterScriptInit()
{
    print(",    Filter Script    .");
    print("| Sistema Anti Hacker |");
    print("`    By: Caio_Freeze    ґ");
    return 1;
}

public OnFilterScriptExit()
{
    print(",    Filter Script    .");
    print("| Sistema Anti Hacker |");
    print("`    By: Caio_Freeze    ґ");
    return 1;
}

public OnPlayerConnect(playerid)
{
    new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s",name);
    for(new fdp=0;fdp<RONALDO_LOL;fdp++)
    {
        if(strfind(string, IP[fdp], true) != -1)
        {
            new string2[128];
            new PlayerNames[30];
            GetPlayerName(playerid, PlayerNames, 30);
            format(string2, sizeof(string2), "%s Foi kickado Pelo BOT Por Tentar Divulgar Outro Servidor!",PlayerNames);
            SendClientMessageToAll(0xFF0000AA, string2);
            SpawnPlayer(playerid);
            SetPlayerPos(playerid, 1,1,1);
            TimerFDP = SetTimerEx("FDP", 2000, 0, "i", playerid);
            return 0;
        }
    }
    SendClientMessage(playerid, 0x00FF00AA, "[BVL] Este Servidor Usa Anti-Divulgador Criado Por Caio_Freeze");
    SendClientMessage(playerid, 0x00FF00AA, "[BVL]Favor Nгo Divulgue Outro Server. Obrigado!");
    for(new i; i<sizeof(NicksProibidos); i++)
    {
        if(strcmp(NicksProibidos[i],Poderoso_Tiger(playerid),true)==0)
        {
            MSGPLAYER(playerid,COLOR_TIGER,"Seu Nome e Proibido e Nгo e Permitido Para o Brasil Virtual Life");
            MSGPLAYER(playerid,COLOR_TIGER,"E Por Causa Disso Vocк Foi Banido !! :)");
            Ban(i);
        }
    }
    new ip[16];
    GetPlayerIp(playerid, ip, 16);
    for(new i = 0; i < sizeof(PlayerIP); i++)
    {
        if(strfind(ip, PlayerIP[i][IPz], true) != -1)
        {
            if(strlen(ip) == strlen(PlayerIP[i][IPz]))
            {
                if(PlayerIP[i][Option] == Banir)
                {
                    SendClientMessage(playerid, 0xFFFFFFFF, "** Vocк foi Banido(a) Pelo Sistema Anti-Hacker By: Caio_Freeze.");
                    Ban(playerid);
                }
                else if(PlayerIP[i][Option] == Kickar)
                {
                    SendClientMessage(playerid, 0xFFFFFFFF, "** Vocк foi Kickado(a) Pelo Sistema Anti-Hacker By: Caio_Freeze.");
                    Kick(playerid);
                }
                break;
            }
        }
    }
    FloodAlert[playerid] = 0; FloodTimer[playerid] = 0;
    SendClientMessage(playerid, ColorFlood, "[Anti-Flood] Este server Possui Anti-Flood!!");
    return 1;
}

stock Poderoso_TigerOwna(result[])
{
    if(strfind(PlayerName(i), "[", true) != -1 || strfind(PlayerName(i), "]", true) != -1)
    {
        SendClientMessage(i, -1, "Seu Nick nгo deve conter Conchetes ( [ ] )");
        Kick(i);
    }
}

stock Nome(playerid)
{
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    return Nome;
}
public OnPlayerText(playerid, text[])
{
    new string[256];
    for(new fdp=0;fdp<RONALDO_LOL;fdp++)
    {
        if(strfind(text, IP[fdp], true) != -1)
        {
            new string2[128];
            new PlayerNames[30];
            GetPlayerName(playerid, PlayerNames, 30);
            format(string2, sizeof(string2), "%s Foi kickado Pelo BOT Por Tentar Divulgar Divulgar Outro Servidor!",PlayerNames);
            SendClientMessageToAll(0xFF0000AA, string2);
            new nomefdp[30], ipdivulgado[512], ipfdp[128], iplolol[128];
            GetPlayerIp(playerid,iplolol,128);
            GetPlayerName(playerid, nomefdp, 30);
            format(ipdivulgado, 256, "%s", text);
            format(ipfdp, 256, "%s", iplolol);
            new File:ofdp=fopen("divulgadores.txt", io_append);
            new iFDP = strval(ipfdp);
            format(string, 256, "Nome Do FDP: %s - Ip Divulgado: %s - Ip do FDP: %s \n", nomefdp, ipdivulgado, iFDP);
            fwrite(ofdp, string);
            print(string);
            fclose(ofdp);
            SetPlayerPos(playerid, 1,1,1);
            TimerFDP = SetTimerEx("FDP", 2000, 0, "i", playerid);
            return 0;
        }
    }
    KillTimer(FloodTimer[playerid]);
    FloodTimer[playerid] = SetTimerEx("RemoveFlood", TimerFlood, 0, "i", playerid);
    FloodAlert[playerid] ++;
    if(FloodAlert[playerid] > 1 && FloodAlert[playerid] < AlertFlood-1)
    {
        format(string, sizeof(string), "[Anti-Flood] Vocк tem {FFFF00}%d/%d{24B1DB} avisos.", FloodAlert[playerid], AlertFlood);
        SendClientMessage(playerid, ColorFlood, string);
    }
    if(FloodAlert[playerid] == AlertFlood-1)
    {
        format(string, sizeof(string), "[Anti-Flood] Vocк tem {FFFF00}%d/%d{24B1DB} avisos. Mais um e vocк serб Kickado.", FloodAlert[playerid], AlertFlood);
        SendClientMessage(playerid, ColorFlood, string);
    }
    if(FloodAlert[playerid] == AlertFlood)
    {
        format(string, sizeof(string), "[Anti-Flood] Vocк tem {FFFF00}%d/%d{24B1DB} avisos. Vocк foi Kickado.", FloodAlert[playerid], AlertFlood);
        SendClientMessage(playerid, ColorFlood, string);
        Kick(playerid);
        new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "[Anti-Flood] {FFFF00}%s{24B1DB} foi kickado por Flood.", pname);
        SendClientMessageToAll(ColorFlood, string);
        return 0;
    }
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new string[256];
    for(new fdp=0;fdp<RONALDO_LOL;fdp++)
    {
        if(strfind(cmdtext, IP[fdp], true) != -1)
        {
            new string2[128];
            new PlayerNames[30];
            GetPlayerName(playerid, PlayerNames, 30);
            format(string2, sizeof(string2), "%s Foi kickado Pelo BOT Por Tentar Divulgar Divulgar Outro Servidor!",PlayerNames);
            SendClientMessageToAll(0xFF0000AA, string2);

            new nomefdp[30], ipdivulgado[512], ipfdp[128], iplolol[128];
            GetPlayerIp(playerid,iplolol,128);
            GetPlayerName(playerid, nomefdp, 30);
            format(ipdivulgado, 256, "%s", cmdtext);
            format(ipfdp, 256, "%s", iplolol);
            new File:ofdp=fopen("divulgadores.txt", io_append);
            new iFDP = strval(ipfdp);
            format(string, 256, "Nome Do FDP: %s - Ip Divulgado: %s - Ip do FDP: %s \n", nomefdp, ipdivulgado, iFDP);
            fwrite(ofdp, string);
            print(string);
            fclose(ofdp);

            SetPlayerPos(playerid, 1,1,1);
            TimerFDP = SetTimerEx("FDP", 2000, 0, "i", playerid);

            return 0;
        }
    }
    return 0;
}
public FDP(playerid)
{
    Kick(playerid);
    KillTimer(TimerFDP);
    new comando[126],
    string[256],
    pname[MAX_PLAYER_NAME];
    if(!strcmp("/resetarflood", comando, true))
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, ColorFlood, "[Anti-Flood] Vocк nгo й Admin RCON.");
        new resposta[MAX_PLAYER_NAME];
        if(!strlen(resposta)) return SendClientMessage(playerid, ColorFlood, "[Anti-Flood] /ResetarFlood [PlayerID/NOME]");
        new player = ReturnUser(resposta);
        if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, ColorFlood, "[Anti-Flood] Jogador Nгo Conectado.");
        GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "[Anti-Flood] {FFFF00}%s{24B1DB} resetou o seu Flood.", pname);
        SendClientMessage(player, ColorFlood, string);
        FloodAlert[player] = 0;
        GetPlayerName(player, pname, sizeof(pname));
        format(string, sizeof(string), "[Anti-Flood] Vocк resetou o Flood de {FFFF00}%s{24B1DB}.", pname);
        SendClientMessage(playerid, ColorFlood, string);
        return 1;
    }
    return 0;
}

public RemoveFlood(playerid)
{
    KillTimer(FloodTimer[playerid]);
    FloodAlert[playerid] = 0;
    return 1;
}
Reply
#4

VLWWWWWWWWW PAULORRRRR SALVO MINHA LIFEEEEE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)