05.01.2014, 20:24
Quote:
Kind of like this, but how could I make this right here into a /time command using ZCMD?
|
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;
}