SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/05/2013, 07:35 PM   #1
memeli11
Little Clucker
 
Join Date: Dec 2012
Posts: 25
Reputation: 8
Default how to set player's time same as world time

how to set player's time same as world time ? my servertime is 01:00 but when I connect server it becomes 12:00 and I want everybody use same clock... I use it :
Code:
#include <time>

forward TimeUpdate();
new worldTime;

public TimeUpdate() {
    worldTime++;
    worldTime%=24;
    SetWorldTime(worldTime);
}

//under gamemode init
    SetTimer("TimeUpdate",65009, 1);
memeli11 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i set world time?? Elmerz_com Help Archive 3 21/11/2010 03:33 PM
Get World Time VirSpectorX Help Archive 13 22/06/2010 01:36 PM
[HELP] World time. screw Help Archive 3 02/01/2010 06:46 PM
[HELP]How To set world time. arachimi Help Archive 1 22/12/2009 10:10 PM
[HELP]World time aleksandra Help Archive 2 27/05/2009 06:22 AM


All times are GMT. The time now is 01:11 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.