SA-MP Forums Archive
help how to make - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help how to make (/showthread.php?tid=172745)



help how to make - iJumbo - 31.08.2010

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


Re: help how to make - Grim_ - 31.08.2010

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


Re: help how to make - iJumbo - 31.08.2010

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


Re: help how to make - Grim_ - 31.08.2010

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.


Re: help how to make - iJumbo - 31.08.2010

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))



Re: help how to make - Grim_ - 31.08.2010

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



Re: help how to make - iJumbo - 31.08.2010

same error lol


Re: help how to make - Grim_ - 31.08.2010

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


Re: help how to make - iJumbo - 31.08.2010

np same error again o.o but in last line lol


Re: help how to make - Cameltoe - 31.08.2010

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