ANTI-FLOOD BUN
#1

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

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

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.
Reply
#4

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

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.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)