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), "[LS]: Agora sгo exatamente %d:00 em Los Santos",shifthour);
BroadCast(COLOR_GRAD1,string);
ghour = tmphour;
PayDay();
SetHora();
}
}
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 == 17))
{
format(string, sizeof(string), "[LS]: Agora sгo exatamente %d:00 em Los Santos",shifthour);
BroadCast(COLOR_GRAD1,string);
ghour = tmphour;
PayDay();
SetHora();
}
}
public SyncTime()
{
new string[128];
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), "{FF1493}Agora sгo %d:00 horas.",shifthour);
SendClientMessageToAll(COLOR_DBLUE,string);
ghour = tmphour;
PayDay();
SetHora();
}
}
|
Esse tempo do gettime й o TEMPO REAL, nгo o tempo do GTA SA... Se vocк estiver falando daquele relуginho no canto superior direito nгo sei se tem como getar o horбrio dele.
|