anti spam
#1

i added this fs : https://sampforum.blast.hk/showthread.php?tid=191915 for anti spam on chat and commands.

but i removed kick system and i want when player typye message and enter so they show to player "please wait before" but script show like this but they sending message to and i want they don't send message just only show "please wait" <--- that msg.

any help? pls
Reply
#2

try Adding

if(TCount) return 0;

At the end of OnPlayerText of the filterscript
Reply
#3

i added but player can't chat.
Reply
#4

Post here your OnPlayerText (of the filterscript)
Reply
#5

Код:
public OnPlayerText(playerid, text[])
{
    new TCount;

	TCount = GetPVarInt(playerid, "TextSpamCount");

	TCount++;

	SetPVarInt(playerid, "TextSpamCount", TCount);

	if(TCount == 2) {
	    SendClientMessage(playerid, RED, "Please wait before sending another chat message.");
	}

	SetTimerEx("ResetCount", SpamLimit, false, "i", playerid);
Reply
#6

This is not the whole callback
Reply
#7

[QUOTE=pelani;2361586]i added this fs : https://sampforum.blast.hk/showthread.php?tid=191915 for anti spam on chat and commands.

open the link and see whole script. and tell me where i need to put ur code like i want.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)