how can i make anti-spam for this?
#1

Код:
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);
Reply
#2

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

Thnx
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)