anticommandspam - OCMD
#9

I tried it with GetTickCount and GetTime both won't work > OnPlayerCommandPerformed works

I can just type a Command every single sec like before
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{

if(success)
{
if(lastcommand[playerid]>gettime()) return SendClientMessage(playerid,-1,"* Please wait before using this command again.");

lastcommand[playerid] = gettime()+10000;
return 1;
}
return 1;
}
Reply


Messages In This Thread
anticommandspam - OCMD - by playstores - 09.10.2018, 19:58
Re: anticommandspam - OCMD - by KinderClans - 09.10.2018, 21:17
Re: anticommandspam - OCMD - by XxBaDxBoYxX - 09.10.2018, 22:01
Re: anticommandspam - OCMD - by Undef1ned - 09.10.2018, 22:13
Re: anticommandspam - OCMD - by KinderClans - 09.10.2018, 23:04
Re: anticommandspam - OCMD - by XxBaDxBoYxX - 10.10.2018, 22:36
Re: anticommandspam - OCMD - by Bruno13 - 10.10.2018, 23:10
Re: anticommandspam - OCMD - by KinderClans - 11.10.2018, 00:34
Re: anticommandspam - OCMD - by playstores - 13.10.2018, 07:07
Re: anticommandspam - OCMD - by KinderClans - 13.10.2018, 08:31

Forum Jump:


Users browsing this thread: 1 Guest(s)