Renat_Montego
Компетентный
Здравствуйте ув.пользователи P-I решил выложить команду /time весь тект на русском
Автор "Я"
Автор "Я"
PHP:
if(strcmp(cmd, "/time", true) == 0)
{
if(IsPlayerConnected(playerid)) ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s взглянул на часы", sendername);
ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new mtext[20];
new year, month,day;
getdate(year, month, day);
if(month == 1) { mtext = "•®ўap©"; }
else if(month == 2) { mtext = "Ѓeўpaћ©"; }
else if(month == 3) { mtext = "Map¦"; }
else if(month == 4) { mtext = "AЈpeћ©"; }
else if(month == 5) { mtext = "Maќ"; }
else if(month == 6) { mtext = "…«®©"; }
else if(month == 7) { mtext = "…«ћ©"; }
else if(month == 8) { mtext = "Aў™yc¦"; }
else if(month == 9) { mtext = "Ce®¦¬—p©"; }
else if(month == 10) { mtext = "ok¦¬—p©"; }
else if(month == 11) { mtext = "Ho¬—p©"; }
else if(month == 12) { mtext = "ѓeka—p©"; }
new hour,minuite,second;
gettime(hour,minuite,second);
FixHour(hour);
hour = shifthour;
if (minuite < 10)
{
if (PlayerInfo[playerid][pJailTime] > 0) format(string, sizeof(string), "~y~%d %s~n~~g~~w~%d:0%d~n~~w~Cpok: %d cek", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
else format(string, sizeof(string), "~y~%d %s~n~~g~~w~%d:0%d", day, mtext, hour, minuite);
}
else
{
if (PlayerInfo[playerid][pJailTime] > 0) format(string, sizeof(string), "~y~%d %s~n~~g~~w~%d:%d~n~~w~Cpok: %d cek", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
else format(string, sizeof(string), "~y~%d %s~n~~g~~w~%d:%d", day, mtext, hour, minuite);
}
GameTextForPlayer(playerid, string, 5000, 1);
return true;
}
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
Последнее редактирование:
