Quote:
Originally Posted by Abagail
pawn Код:
CMD:sync(playerid, params[]) { if(SyncTimer == 0) { SyncTimer[playerid] = 180; ClearAnimations(playerid); } else return SendClientMessage(playerid, -1, "You must wait %d seconds before using this command again.", SyncTimer); return 1; }
timer UpdateSyncTimer[1000](playerid) { if(SyncTimer > 0) SyncTimer--; return 1; }
|
Quote:
Originally Posted by Ciandlah
Why use timestamp? settimer is much easier
|
Why use a timer? You really don't need it and it slows down your whole game mode especially if you have many players or several different commands with timeouts. And it's not even easier...
I recommend not to use timers where ever you don't need them. Performance over memory. But if you do, please do not complain about your server lagging.