12.05.2015, 22:11
Hello.
I make this for changing server time (real time).
But when is 0 minute she spam 10 time,becouse this public called by timer every 10 seconds.
Who can help me and say me how to make better function?
I make this for changing server time (real time).
But when is 0 minute she spam 10 time,becouse this public called by timer every 10 seconds.
Who can help me and say me how to make better function?
Код:
public MedServerTimer1()
{
new Minute;
gettime(Minute);
if(Minute == 0)
{
new Hour, Second;
gettime(Hour,Second);
if(Second > 15) return 1;
SetWorldTime(Hour);
new string[124];
format(string, sizeof(string),""COL_LIME"[ULN]: "COL_WHITE"Sada je %d sati. Vrijeme je: Vedro.", Hour);
SendClientMessageToAll(-1,string);
}
return 1;
}


?
rep+