how to Save server time?
#1

how and where did i save my Weather to 5 and my time to 23?
like to Freeze this Weather and this Time to all the players
Reply
#2

SetWorldTime( 23); to set server time.
SendRconCommand("weather 5"); to set weather to 5.
Reply
#3

Where to write it?
Reply
#4

Inside OnGameModeInit maybe.
Or in a command.
Reply
#5

Quote:
Originally Posted by Richie
Посмотреть сообщение
SetWorldTime( 23); to set server time.
SendRconCommand("weather 5"); to set weather to 5.
There's actually a SetWeather function.

pawn Код:
SetWeather(5);
Reply
#6

i want to Freeze the time at 23:00 ...
Reply
#7

Help me Please!! How to freeze time at 23:00 ?
Reply
#8

Set SetWorldTime( 23); inside a timer, that sets the time 23 always.
pawn Код:
forward SettingTime();
public SettingTime()
{
     SetWorldTime( 23);
     return 1;
}
and in OnGameModeInit:
pawn Код:
SetTimer("SettingTime", 600000, 1); // This will set time to 23 every 10 minuttes
preferably put SetWorldTime( 23); inside another timer you have
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)