Detaljan opis problema😮vako ovo dole je kod vremena na serveru ali bio dan ili noc na serveru je mrak
Dio skripte😄ole
Neke slike/video za lakse dobivanje pomoci(neobavezno):
//------------------------------------------------------------------------------
task SyncTime()
{
new tmphour,
tmpminute,
tmpsecond,
year,
month,
day,
stringicc[ 60 ];
getdate( year, month, day );
gettimeEx( tmphour, tmpminute, tmpsecond );
FixHour( tmphour );
tmphour = shifthour;
format( stringicc, sizeof( stringicc ), "~g~%d/%d/%d", day, month, year );
format( stringicc, sizeof( stringicc ), "%s%d:%s%d:%s%d", (tmphour < 10) ? ("0") : (""), tmphour, (tmpminute < 10) ? ("0") : (""), tmpminute, (tmpsecond < 10) ? ("0") : (""), tmpsecond);
for( new i = 1; i < MAX_ATM; i++ ) {
if( atmInfo[ i ][ atmExists ] == true ) {
if( atmInfo[ i ][ atmVremeDoRoba ] != 0 ) {
atmInfo[ i ][ atmVremeDoRoba ]--;
if( atmInfo[ i ][ atmVremeDoRoba ] == 0 ) {
atmInfo[ i ][ atmPreseceneZice ] = false;
atmInfo[ i ][ atmProbijenBios ] = false;
}
}
}
}
for( new i = 1; i < MAX_GZONE; i++ ) {
if( gZoneInfo[ i ][ gZoneTime ] != 0 ) {
gZoneInfo[ i ][ gZoneTime ]--;
}
}
if(tmpminute == 14 || tmpminute == 29 || tmpminute == 44 || tmpminute == 59)
{
LoadMK();
}
if( VremeZatvaranjaCelija > -1 ) {
VremeZatvaranjaCelija--;
if( VremeZatvaranjaCelija == 0 ) {
UpravljanjeCelijama( false );
}
}
if( ( tmphour > ghour ) || ( tmphour == 0 && ghour == 0 ) ) {
format( globalstring, sizeof( globalstring ), "Hvala Vam sto igrate na RevolucionGaming HP, trenutno je "col_yelow"%d:00 sati", tmphour+1 );
OOCNews( BELA, globalstring );
ghour = tmphour;
if( tmphour == 1 ) {
SetWeather( 1 );
}
if( realtime ) {
SetWorldTime( 13 );
ServerInfo[ VremeInGame ] = 13;