09.03.2014, 23:58
pawn Код:
msgs(playerid) {
new hour, str[128];
gettime(.hour = hour);
switch(hour) {
case 0..5: format(str, 128, "~b~Boa madrugada");
case 6..12: format(str, 128, "~b~Bom dia");
case 13..17: format(str, 128, "~b~Boa tarde");
case 18..23: format(str, 128, "~b~Boa noite");
}
GameTextForPlayer(playerid, str, 5000, 1);
}
Abraзos.