You cannot use that command next 30seconds
#8

Quote:
Originally Posted by Mr_DjolE
Посмотреть сообщение
What the hell are you doing [HK]Ryder[AN] ? Putting a timer for it ? rofl...

Simply use:
pawn Код:
if(GetPVarInt(playerid,"lols")>GetTickCount()) return SendClientMessage(playerid,0xFF0000AA,"Please wait 30 secs before using this command.");
SetPVarInt(playerid,"lols",GetTickCount()+30000);
GetTickCount overlaps itself eventually making it useless if the server uptime is above 24 days. THAT is why most people don't use GetTickCount, and hense why he used a timer. He was correct.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)