Changing time difference ???
#1

Hello, Someone can tell me how to change the hour of my server to +1?

Ex: 16:00 -> 17:00

Sorry my English

Reply
#2

generally you have to add 1 hour after gettime

what gamemode is this for?
Reply
#3

Use the GodFather

What can I change?
Reply
#4

What I am using for example:


if (hour == 0)
{
SetWorldTime(1);
}
if (hour == 1)
{
SetWorldTime(2);
}

etc.
Reply
#5

new hour = Gettime or whatever its called;

SetWorldTime(hour+1);
Reply
#6

my approach was similar to Badger's - I too simply added +1, only here:

public FixHour(hour)
{
hour = timeshift+hour+1;
if (hour < 0)
{
hour = hour+24;
}
else if (hour > 23)
{
hour = hour-24;
}
shifthour = hour;
return 1;
}
Reply
#7

GOOOD!!!

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)