Server time
#1

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?

Код:
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;
}
Reply


Messages In This Thread
Server time - by TiXz0r - 12.05.2015, 22:11
Re: Server time - by JaKe Elite - 12.05.2015, 22:43
Re: Server time - by TiXz0r - 12.05.2015, 23:01
Re: Server time - by JaKe Elite - 12.05.2015, 23:06
Re: Server time - by TiXz0r - 12.05.2015, 23:08

Forum Jump:


Users browsing this thread: 1 Guest(s)