clock
#2

gettime gets the SERVER time not the GAME time. What you can do is sync them bot

public UpdateTime()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Hour, Min;
gettime(Hour,Min);
SetWorldTime(Hour);
new string[16];
format(string, sizeof(string), "%02d:%02d", Hour, Min);
SetPlayerTime(i, Hour, Min);
TextDrawSetString(Clock[i], string);
}
return 1;
}

so time will be same as ServerTime
Reply


Messages In This Thread
clock - by stix - 20.12.2010, 18:13
Re: clock - by admantis - 20.12.2010, 18:16
Re: clock - by stix - 20.12.2010, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)