13.10.2018, 07:07
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;
}
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;
}