15.03.2010, 13:22
I have 2 commands
And i wanna make spam blocker, when player use command /moli and /molitva to cant use that command next 5 min. Can anyone help me?! Its really need me
Код:
if(strcmp("/moli", cmdtext, true) == 0)
{
if(PlayerToPoint(5.0,playerid,2490.2896,918.3433,11.0234))
{
SendClientMessage(playerid, 0xFF0005FF,"Pricekaj 30 sekundi da se pomolis....");
TogglePlayerControllable(playerid,0);
SetTimerEx("Molitva", 30000, false, "d",playerid);
}
return 1;
}
if(strcmp("/molitva", cmdtext, true) == 0)
{
if(PlayerToPoint(5.0,playerid,1454.1189,751.7510,11.0234))
{
SendClientMessage(playerid, 0xFF0005FF,"Pricekaj 30 sekundi da se pomolis....");
TogglePlayerControllable(playerid,0);
SetTimerEx("Molitva2", 30000, false, "d",playerid);
}
return 1;
}

