[Ajuda] Fs Anti-Hacker [Ajuda]
#1

Faz Um FS Tudo Junto De:

Anti-Hack
Anti-IP
Anti-Tag
Anti-Divulguer
Anti-Flood
Anti-Wepons Hack
Anti-Health Hack
Anti-Armour Hack
Anti-Bot
Anti-Bad Nick

Seria Um Bom FS Apesar de Mtos FS assim Estarem Bugados
E muitos FS q tem assim Tem uns q Falta Algumas coisas Citadas Acima

Ficarei mto grato Darei Rep +++ Ou Se alguem poderia me dar uma luz de me ajudar a fazer u meu proprio fs de anti hack
Obrigado desde ja

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;
}
Ele Estб com um bug q quando eu compilo ele n da erro nenhum mais i no .amx ele fica com 0 bytes ;(
Reply
#2

Nosso Deus! Quer um GM feito do jeito que vocк quer tambйm nгo? AHAHAUAH
Anti Flood tem num FS que vem no samp-server, й o baseaf. Sу catar e traduzir! O resto vou ver se acho por aqui, anti-tag no nick й fбcil fazer, se der posto o code aqui.

@Edit: Anti IP e anti divulguer nгo й a mesma coisa ? '-'

@Edit: Esse tуpico vai te ajudar com o Anti IP: https://sampforum.blast.hk/showthread.php?tid=116025
E esse tem esse topico seu, sobre Anti Tag: https://sampforum.blast.hk/showthread.php?pid=1685691#pid1685691
Reply
#3

mano eu fiz um mais n obtive mto sucesso
ele compilava sem erro mais os arquivo .amx ficava com 0 bytes ou seja n tinha nada compilado nele
ai tirei o ati divulgue q tinha colocado e funcino
mais na hora q eu coloquei no gm ele bugo

@Edit nao ele n й a mesma coisa esse anti-ip ele funciona da segunte forma eu adc um ip q eu n quero q entre ne meu sv ai a pessoa q entra com o ip restringido ela e banida ou kkada automaticamente

@Edit 2

Vou postar o meu fs ai vc pode arruma alguns bugs?
Reply
#4

Ajuda eu
Reply
#5

Bom eu concordo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)