SA-MP Forums Archive
how can i make anti-spam for this? - 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: how can i make anti-spam for this? (/showthread.php?tid=150331)



how can i make anti-spam for this? - hardstop - 25.05.2010

Код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1419.0038,544.4953,18.4670))//Kalastamise koht
{
LoopingAnim(playerid,"PED","SEAT_down",4.1,0,1,1,1,0);
SendClientMessage(playerid, LILLA, "* alustasid kalapььgiga");
SetTimerEx("Kalastamine", 60000, false, "i", playerid);
new string2[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string2, sizeof(string2), "%s pakib oma kalastus vahendid lahti ning alustab pььgiga", pname);
SendLocalMessage(playerid, LILLA, 7, string2);
}
i have it under : public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
and if i press F or ENTER button then it does that but how can i make if you have already clicked 1 time then you need to wait till Timer ends SetTimerEx("Kalastamine", 60000, false, "i", playerid);


Re: how can i make anti-spam for this? - [XST]O_x - 25.05.2010

I asked the same question,here is the answer
http://forum.sa-mp.com/index.php?top...475#msg1017475


Re: how can i make anti-spam for this? - hardstop - 25.05.2010

Thnx