How can I make this work?
#1

Something like this;
Код:
SetWorldTime(%s, Hour);
Obviously the %s is repersenting something and the hour is that something.
Is this even possible?

I mean either use SetWorldTime, or atleast loop it through all players with SetPlayerTime too?
Reply
#2

Hello use this to change your world time in your server SetWorldTime(13); this is my GMT +2
Reply
#3

.. Obviously.

I'm talking about the script will get the worlds time and actually set the time to that time.
Reply
#4

SetWorldTime only accepts integer values, so if your 'Hour' variable contains the right value simply use:
pawn Код:
// Ex:
new Hour = 13;

SetWorldTime(Hour);
Reply
#5

Make a timer that repeat every one hour and make it or:
pawn Код:
new Time[ 2 ];
gettime( Time[ 0 ], Time[ 1 ] );
SetPlayerTime( playerid, Time[ 0 ], Time[ 1 ] );
Reply
#6

Nevermind.

EDIT: Yeah figured it out right after my second post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)