Set Time
#3

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
There is probably a timer in your script, which sets the world time every x seconds.
Try searching for SetWorldTime in your script, and comment it if you find the timed one.
if(!realtime)
{
SetWorldTime(wtime);
gTime = wtime;
}
__________________________________________________ __

if (realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour);
gTime = tmphour;
}
__________________________________________________ __

format(string, sizeof(string), "The time is now %d:00.",tmphour);
BroadCast(COLOR_WHITE,string);
ghour = tmphour;
TotalUptime += 1;
PayDay();
if (realtime)
{
SetWorldTime(tmphour);
gTime = tmphour;
}
__________________________________________________ __

SetWorldTime(time);
FixHour(time);
shifthour = time;
ghour = time;
wtime = time;
gTime = time;
format(string, sizeof(string), "Time set to %d:00.", time);
BroadCast(COLOR_GRAD1, string);
Reply


Messages In This Thread
Set Time - by raamiix - 16.03.2013, 08:40
Re: Set Time - by Jstylezzz - 16.03.2013, 09:06
Re: Set Time - by raamiix - 16.03.2013, 09:10
Re: Set Time - by Jstylezzz - 16.03.2013, 09:11
Re: Set Time - by raamiix - 16.03.2013, 09:15
Re: Set Time - by Jstylezzz - 16.03.2013, 09:17

Forum Jump:


Users browsing this thread: 1 Guest(s)