Anti spam doesn't work - 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: Anti spam doesn't work (
/showthread.php?tid=151473)
Anti spam doesn't work -
Battleman93 - 30.05.2010
Hi,
I have made this anti spam. But it doesn't work xD
Who do know what wrong..?
Код:
if(!strcmp(LastMessageTekst[playerid], text, true))
{
format(whatstring, sizeof(whatstring), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, whatstring);
LastMessage[playerid] = gettime();
format(LastMessageTekst[playerid], 128, "%s", text);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Don't repeat yourself! :O");
return 0;
}
Re: Anti spam doesn't work -
Battleman93 - 24.06.2010
bump.
Nobody knows?
Re: Anti spam doesn't work - [03]Garsino - 24.06.2010
pawn Код:
if(strcmp(LastMessageTekst[playerid], text, true))
{
format(whatstring, sizeof(whatstring), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, whatstring);
LastMessage[playerid] = gettime();
format(LastMessageTekst[playerid], 128, "%s", text);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Don't repeat yourself! :O");
return 0;
}