Is it possible to define time?
#4

Quote:
Originally Posted by K9IsGodly
Посмотреть сообщение
Kind of like this, but how could I make this right here into a /time command using ZCMD?
This should work.

pawn Код:
CMD:time(playerid, params[])
{
    new string[ 30 ], Date[ 6 ]
    ;
            //Year      //Month     //Day
    getdate(Date[ 0 ], Date[ 1 ], Date[ 2 ]);
            //Hour      //Minutes   //Seconds
    gettime(Date[ 3 ], Date[ 4 ], Date[ 5 ]);
    format( string, sizeof( string ), "Todays Time: %i:%i", Date[3], Date[4]), SendClientMessage( playerid, -1, string );
    format( string, sizeof( string ), "Todays Date: %i:%i:%i", Date[ 0 ], Date[ 1 ], Date[ 2 ]), SendClientMessage( playerid, -1, string );
    return true;
}
Reply


Messages In This Thread
Is it possible to define time? - by K9IsGodly - 05.01.2014, 20:08
Re: Is it possible to define time? - by Patrick - 05.01.2014, 20:13
Re: Is it possible to define time? - by K9IsGodly - 05.01.2014, 20:18
Re: Is it possible to define time? - by Patrick - 05.01.2014, 20:24
Re: Is it possible to define time? - by K9IsGodly - 05.01.2014, 20:32
Re: Is it possible to define time? - by Patrick - 05.01.2014, 20:51
Re: Is it possible to define time? - by Danyal - 05.01.2014, 21:04
Re: Is it possible to define time? - by KingHual - 05.01.2014, 21:20
Re: Is it possible to define time? - by Danyal - 05.01.2014, 21:27
Re: Is it possible to define time? - by KingHual - 05.01.2014, 21:33

Forum Jump:


Users browsing this thread: 1 Guest(s)