SA-MP Forums Archive
Spam - 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: Spam (/showthread.php?tid=595929)



... - StackedPizza - 09.12.2015

_removed_


Re: Spam - Simeon87 - 09.12.2015

If they reach a certain amount of warnings you could automatically kick/ban. I assume you only have the message showing to online admins?

You could also code it so that it only alerts to one detection per hour, or something to that effect.


Re: Spam - SickAttack - 09.12.2015

What kind of spam? It sends 7 messages per detection? It spams the same message when and only when a player has more than 100.0 HP non-stop? Or anything in between?


... - StackedPizza - 10.12.2015

_removed_


Re: Spam - SickAttack - 10.12.2015

Quote:
Originally Posted by StackedPizza
Посмотреть сообщение
its spam and spam untill you do something like kick the player.
Add an interval to the detection system.

pawn Код:
new ptsAntiHealthHacks[MAX_PLAYERS];

-------------------------------------------------------------

if((gettime() - ptsAntiHealthHacks[playerid]) < (60 * 1)) return 0;

SendClientMessage(...);

ptsAntiHealthHacks[playerid] = gettime();
return 1;