[]Help needed[]

01/23/2011 23:34 rule34onyourmom#1
How to get the Server " Time " on a game to all be the same and the date aswell if its possible. im not great at that kinda stuff i need some help
02/02/2011 08:10 inƒlames#2
well, you could get the time from where the server is hosted i believe theres an implemented C++ function that returns the current time
02/02/2011 08:50 .Kinshi#3
You send a packet when the player logs in with the date and time.
02/02/2011 08:52 Syst3m_W1z4rd#4
C++
Code:
#include <time.h>

int main()
{
    char _date [9];
    char _time [9];
    _strdate( _date);
    _strtime( _time );
		 
    return 0;
}
C#
Code:
        static void Main(string[] args)
        {
            DateTime Date = DateTime.Now;
        }
02/04/2011 21:33 pro4never#5
If you mean ingame then there is a datetime packet which you can either send (if you are hosting the server yourself) or modify (if you're working with a proxy/real conquer).

The packet is sent only once during login and the client will update it from there.