SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 10/08/2010, 01:23 AM   #1
Pawn
Little Clucker
 
Join Date: Jul 2010
Posts: 6
Reputation: 0
Default [AJUDA]Alguns Problemas

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
Pawn is offline   Reply With Quote
Old 10/08/2010, 01:30 AM   #2
Macintosh
High-roller
 
Macintosh's Avatar
 
Join Date: Aug 2010
Location: Somewhere Far User Type: Administrator
Posts: 3,609
Reputation: 103
Default Re: [AJUDA]Alguns Problemas

Todas suas respostas estão aqui
__________________

"É tão estranho
Os bons morrem jovens
Assim parece ser, quando me lembro de você
Que acabou indo embora, cedo demais
"

Os bons morrem jovens (Legião Urbana).

Um dia a gente irá se encontrar numa bem melhor brother

Macintosh is offline   Reply With Quote
Old 10/08/2010, 01:45 AM   #3
Kasura
Gangsta
 
Kasura's Avatar
 
Join Date: Jul 2010
Location: Porto Alegre,RS
Posts: 878
Reputation: 10
Talking Re: [AJUDA]Alguns Problemas

Anti-BOT colocar em onplayerconnect

pawn Code:
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 Code:
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
__________________
Quote:



Lista de Scripts: Clique AQUI!
Hospedagem SA-MP BR: Clique AQUI!
Forum SA:MP Brasil: Clique AQUI!
Site Servidor Brasil: Clique AQUI!
MSN: guerra-mortal@hotmail.com

Kasura is offline   Reply With Quote
Old 10/08/2010, 05:52 PM   #4
BiieL
High-roller
 
BiieL's Avatar
 
Join Date: May 2010
Location: Fim de Mundo
Posts: 1,254
Reputation: 2
Default Re: [AJUDA]Alguns Problemas

nossa, eurialto com o poderoso, achei q o link era pro meu tio (o google), mas eh pro meu outro tio (o google do forum) heheheheheh eurialto mesmo
__________________
BiieL is offline   Reply With Quote
Old 10/08/2010, 06:13 PM   #5
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 5,353
Reputation: 348
Default Re: [AJUDA]Alguns Problemas

Ant-Spawn:

pawn Code:
#define SPAM_PROTECTION 1
#define SPAM_MAX_MSGS 3
#define SPAM_TIMELIMIT 3 // Segundos que o player pode falar :

pawn Code:
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 Code:
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;
}
__________________
zSuYaNw is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA] Double Hopping dando alguns erros malignos Braian0808 Português/Portuguese 4 09/06/2010 05:09 PM
[AJUDA] Alguns problemas Rakun Português/Portuguese 7 01/06/2010 03:21 AM
[Ajuda]Problemas com cmd no jogo (o)Trydon Português/Portuguese 3 25/05/2010 05:49 PM
[AJUDA] Ajuda Alugns Comandos Aki ? Podem Ajuda eu e Alguns tbm pedro Português/Portuguese 7 06/05/2010 05:12 PM
[Ajuda] Alguns erros. benyskate Português/Portuguese 8 04/02/2010 06:33 PM


All times are GMT. The time now is 06:31 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.