03.09.2014, 17:14
pawn Код:
public SyncTime()
{
new string[64];
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
Fixhour(tmphour);
tmphour = shifthour;
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
format(string, sizeof(string), "[BSL]: Agora sгo %d:00 horas",shifthour);
BroadCast(COLOR_WHITE,string);
ghour = tmphour;
PayDay();
SetHora();
}
}