Quote:
Originally Posted by Jefff
On top
OnGameModeInit
pawn Код:
new Year, Month; getdate(Year, Month, CurDay);
and
pawn Код:
bool:IsCmdLocked() { new Year, Month, Day; getdate(Year, Month, Day); if(Day == CurDay) return true; CurDay = Day; return false; }
pawn Код:
if(IsCmdLocked()) return SendClientMessage(playerid,-1,"Command is blocked");
|
Now I will run the command once I will have to wait to 12 at night right?