16.04.2015, 15:15
Код:
CMD:time(playerid, params[]) { new hh, mm, ss, string[128]; gettime( hh, mm, ss ); format(string, sizeof(string), "~g~[~w~%d:%d~g~]", hh, mm); GameTextForAll( string, 8000, 1 ); return 1; }
CMD:time(playerid, params[]) { new hh, mm, ss, string[128]; gettime( hh, mm, ss ); format(string, sizeof(string), "~g~[~w~%d:%d~g~]", hh, mm); GameTextForAll( string, 8000, 1 ); return 1; }
format(string, sizeof(string), "~g~[~w~%02d:%02d~g~]", hh, mm);
if(hh < 10)
{
format(string, sizeof(string), "~g~[~w~%02d:%d~g~]", hh, mm);
GameTextForAll( string, 8000, 1 );
}