help how to make
#1

hi how i can make an anti flood plz ? like ppl dont say

bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla

in my server? plz

sorry for bad english
Reply
#2

Take a look at baseaf.pwn located inside the filterscripts folder. You downloaded it along with the Server Package, it contains a anti-flood system.

[This forum requires that you wait 120 seconds between posts. Please try again in 37 seconds.] VERY ANNOYING
Reply
#3

yea thx but i mean if player say 5 same messages he get muted :/
Reply
#4

That script also has that feature, as well as timed spamming.

Instead of actually muting the player though, it'll tell them to put in another message. Look into the code and check it out for yourself.
Reply
#5

mm thx i make this
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(GetPVarInt(playerid, "Mute") == 1) return SendClientMessage(playerid,RED,"Sei stato mutato non puoi parlare"),0;
    if(GetPVarInt(playerid, "Mute") == 0) && !IsPlayerJumboAdmin(playerid))
    {
        Spams[playerid]++;
        if(Spams[playerid]>= 5 && !IsPlayerJumboAdmin(playerid))
        {
            new string[128];
            format(string,sizeof(string),"%s и stato mutato per 2 minuti [reason: Spamming]",Name(playerid)); print(string);
            SendClientMessageToAll(YELLOW,string);
            SetPVarInt(playerid, "Mute", 1);
            SetTimerEx("Unmute",2*60*1000,0,"i",playerid);
            return 0;
        }
    }
    return 1;
}
but idk how to fix this
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found ")"
: error 029: invalid expression, assumed zero


this line
pawn Код:
if(GetPVarInt(playerid, "Mute") == 0) && !IsPlayerJumboAdmin(playerid))
Reply
#6

pawn Код:
if((GetPVarInt(playerid, "Mute") == 0) && !IsPlayerJumboAdmin(playerid))
Reply
#7

same error lol
Reply
#8

pawn Код:
if(GetPVarInt(playerid, "Mute") == 1) { SendClientMessage(playerid,RED,"Sei stato mutato non puoi parlare"); return 0; }
Also, which line?

[This forum requires that you wait 120 seconds between posts. Please try again in 32 seconds.] = !!!!!!!!!!111111111111111111111
Reply
#9

np same error again o.o but in last line lol
Reply
#10

pawn Код:
if(GetPVarInt(playerid, "Mute") == 0 && !IsPlayerJumboAdmin(playerid))
- Should do it
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)