SA-MP Forums Archive
ANTI-FLOOD BUN - 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)
+--- Thread: ANTI-FLOOD BUN (/showthread.php?tid=650463)



ANTI-FLOOD BUN - Davidoff7776 - 28.02.2018

Spuneti-mi si mie un anti-flood bun ca astia dau /report cu %s


Re: ANTI-FLOOD BUN - Sew_Sumi - 28.02.2018

English man, but I think you're gonna need to search for it.


Re: ANTI-FLOOD BUN - RogueDrifter - 28.02.2018

Use English cuz this is the English section, if you're looking for an anti command spam check this out :
https://sampforum.blast.hk/showthread.php?tid=649080

i provided a good way to prevent spamming any callback at the end.


Re: ANTI-FLOOD BUN - kingmk - 28.02.2018

Quote:
Originally Posted by Davidoff7776
Посмотреть сообщение
Spuneti-mi si mie un anti-flood bun ca astia dau /report cu %s
Iti pica servarul man? =)).


Re: ANTI-FLOOD BUN - FaLLenGirL - 28.02.2018

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Use English cuz this is the English section, if you're looking for an anti command spam check this out :
https://sampforum.blast.hk/showthread.php?tid=649080

i provided a good way to prevent spamming any callback at the end.
ENG:

Nah, he said that he needs a Anti-Flood because someone is crashing his server when it uses "/report" command and "report text" = with "%s" or "%d" or another parameter. So i don't really think he needs a Anti-Flood for this, just an exception in the "/report" command using "strfind" function.

Ex:
PHP код:
if( strfindReason"%"true ) != - )
{
    
SendClientMessageplayerid0xFF0000FF"ERROR: {FFFFFF}The Reason must not contain invalid characters." );
    return 
1;

RO:

Board Romвnă/Romanian: http://forum.sa-mp.com/forumdisplay.php?f=40
Invata sa postezi in sectiunea potrivita. Aici nu e o sectiune destinata vorbirii in limba romana, in principal e destinata tuturor oamenilor, dar se vorbeste engleza sau discuti in engleza daca ai vreo problema, exista o sectiune doar pentru romania, daca ai fi cautat-o ai fi gasit-o cu siguranta, acolo ti se poate raspunde in romana, de catre romani, daca nu sti engleza in limitele normale ca sa porti o discutie aici. Tot ce trebuie sa faci legat de problema ta este sa folosesti functia "strfind" si totul se va rezolva, daca tu gasesti alta solutie ma bucur, eu asta ti-as spune sa faci, ti-am dat un exemplu mai sus, sper sa pricepi si sa iti fie de folos.


Re: ANTI-FLOOD BUN - Davidoff7776 - 01.03.2018

Quote:
Originally Posted by FaLLenGirL
Посмотреть сообщение
ENG:

Nah, he said that he needs a Anti-Flood because someone is crashing his server when it uses "/report" command and "report text" = with "%s" or "%d" or another parameter. So i don't really think he needs a Anti-Flood for this, just an exception in the "/report" command using "strfind" function.

Ex:
PHP код:
if( strfindReason"%"true ) != - )
{
    
SendClientMessageplayerid0xFF0000FF"ERROR: {FFFFFF}The Reason must not contain invalid characters." );
    return 
1;

RO:

Board Romвnă/Romanian: http://forum.sa-mp.com/forumdisplay.php?f=40
Invata sa postezi in sectiunea potrivita. Aici nu e o sectiune destinata vorbirii in limba romana, in principal e destinata tuturor oamenilor, dar se vorbeste engleza sau discuti in engleza daca ai vreo problema, exista o sectiune doar pentru romania, daca ai fi cautat-o ai fi gasit-o cu siguranta, acolo ti se poate raspunde in romana, de catre romani, daca nu sti engleza in limitele normale ca sa porti o discutie aici. Tot ce trebuie sa faci legat de problema ta este sa folosesti functia "strfind" si totul se va rezolva, daca tu gasesti alta solutie ma bucur, eu asta ti-as spune sa faci, ti-am dat un exemplu mai sus, sper sa pricepi si sa iti fie de folos.
Ty , it works. I'm sorry about the language I think i confused sa-mp.ro with sa-mp.com