[AJUDA]Alguns Problemas
#1

Procurei no Search e sу achei Anti-Flood Ruim

Queria Talz requisitos:

1° Anti-Flood/Spam
2° Anti-Hackers



Eu gostaria tbm...

Entrei em um server que tinha um Bot como adm..
E queria saber como fazia isso?

Eu jogo o 0.2x

Abraзos
Reply
#2

Todas suas respostas estгo aqui
Reply
#3

Anti-BOT colocar em onplayerconnect

pawn Код:
if(strcmp(PlayerIp(playerid), "255.255.255.255") == 0) Ban(playerid);
<< Feito por Yo =D

Anti-Armas proibidas e arma em interior colocar em
public OnPlayerUpdate(playerid)
{

pawn Код:
if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
SetPlayerArmedWeapon(playerid,0); // fists
return 0;
}

// Don't allow minigun
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Anti-Cheat]: %s Usou Arma Proibida = Minigun, Esta Sendo Banido.", pname);
SendClientMessageToAll(0xFFFF00AA, string);
Ban(playerid);
return 0;
}

if(GetPlayerWeapon(playerid) == 37) {
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Anti-Cheat]: %s Usou Arma Proibida = Lanзa-Chamas, Esta Sendo Banido.", pname);
SendClientMessageToAll(0xFFFF00AA, string);
Ban(playerid);
return 0;
}
if(GetPlayerWeapon(playerid) == WEAPON_HEATSEEKER) {
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Anti-Cheat]: %s Usou Arma Proibida = Bazuca, Esta Sendo Banido.", pname);
SendClientMessageToAll(0xFFFF00AA, string);
Ban(playerid);
return 0;
}

if(GetPlayerWeapon(playerid) == WEAPON_ROCKETLAUNCHER) {
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Anti-Cheat]: %s Usou Arma Proibida = Lanзa-Foguetes, Esta Sendo Banido.", pname);
SendClientMessageToAll(0xFFFF00AA, string);
Ban(playerid);
return 0;
}

if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Anti-Cheat]: %s Usou JetPack, Esta Sendo Kickado.", pname);
SendClientMessageToAll(0xFFFF00AA, string);
Kick(playerid);
return 0;
}
Da uma procurada maior no forum que vc encontra tudo isso que te passe e muitoooooooooo mais...

como o amigo cima disse ^^

@EDIT

ACHO QUE O ANTI ARMAS NГO FUNCIONA NO 0.2....

mas n custa tentar
Reply
#4

nossa, eurialto com o poderoso, achei q o link era pro meu tio (o ******), mas eh pro meu outro tio (o ****** do forum) heheheheheh eurialto mesmo
Reply
#5

Ant-Spawn:

pawn Код:
#define SPAM_PROTECTION 1
#define SPAM_MAX_MSGS 3
#define SPAM_TIMELIMIT 3 // Segundos que o player pode falar :
pawn Код:
public OnPlayerText(playerid)
{
    new string[256];
    format(string,sizeof(string),"[ID:%d]: %s",playerid,text);
    SendPlayerMessageToAll(playerid,string);
    #if SPAM_PROTECTION      
    SpamProtection(playerid);    
    #endif
    return 0;
}

No Final :

pawn Код:
stock SpamProtection(playerid)
{
        new string[64];
        if(gSpamCount[playerid][0] == 0) { gSpamCount[playerid][1] = TimeStamp();
        }
        gSpamCount[playerid][0]++;
        if(TimeStamp() - gSpamCount[playerid][1] > SPAM_TIMELIMIT)
        {
                gSpamCount[playerid][0] = 1;
                gSpamCount[playerid][1] = TimeStamp();
        }
        else if(gSpamCount[playerid][0] == SPAM_MAX_MSGS) {
                format(string,sizeof(string)," %s Foi Kickado (Flood/Spam Proteзгo)",GetName(playerid));
                SendClientMessageToAll(0xC8BEBEAA,string);
                Kick(playerid);
        }
        return 1;
}
stock GetName(playerid)
{
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
 
        return name;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)