Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InGameTD[ 10 ] = TextDrawCreate(130.500000, 434.000000, "18:25");
- TextDrawLetterSize(InGameTD[ 10 ], 0.310999, 1.074999);
- TextDrawAlignment(InGameTD[ 10 ], 1);
- TextDrawColor(InGameTD[ 10 ], -1);
- TextDrawSetShadow(InGameTD[ 10 ], 0);
- TextDrawSetOutline(InGameTD[ 10 ], 1);
- TextDrawBackgroundColor(InGameTD[ 10 ], 51);
- TextDrawFont(InGameTD[ 10 ], 1);
- TextDrawSetProportional(InGameTD[ 10 ], 1);
- task SyncTime[60000]()
- {
- new tmphour,
- tmpminute,
- tmpsecond,
- year,
- month,
- day,
- stringicc[ 15 ];
- getdate( year, month, day );
- gettimeEx( tmphour, tmpminute, tmpsecond );
- FixHour( tmphour );
- tmphour = shifthour;
- format( stringicc, sizeof( stringicc ), "(%s%d:%s%d", (tmphour < 10) ? ("0") : (""), tmphour, (tmpminute < 10) ? ("0") : (""), tmpminute, (tmpsecond < 10) ? ("0") : (""), tmpsecond);
- TextDrawSetString( InGameTD[ 10 ], stringicc );
- task GlobalTimer[1000]()
- {
- new id = -1;
- new tmphour,
- tmpminute,
- tmpsecond,
- year,
- month,
- day,
- stringicc[ 15 ];
- getdate( year, month, day );
- gettimeEx( tmphour, tmpminute, tmpsecond );
- FixHour( tmphour );
- tmphour = shifthour;
- format( stringicc, sizeof( stringicc ), "%s%d:%s%d", (tmphour < 10) ? ("0") : (""), tmphour, (tmpminute < 10) ? ("0") : (""), tmpminute, (tmpsecond < 10) ? ("0") : (""), tmpsecond);
- TextDrawSetString( InGameTD[ 10 ], stringicc );
- if( realtime ) {
- new tmphour,
- tmpminute,
- tmpsecond,
- stringicc[ 15 ];
- gettimeEx( tmphour, tmpminute, tmpsecond );
- FixHour( tmphour );
- tmphour = shifthour;
- SetWorldTime( tmphour );
- ServerInfo[ VremeInGame ] = tmphour;
- format( stringicc, sizeof( stringicc ), "%s%d:%s%d", (tmphour < 10) ? ("0") : (""), tmphour, (tmpminute < 10) ? ("0") : (""), tmpminute, (tmpsecond < 10) ? ("0") : (""), tmpsecond);
- TextDrawSetString( InGameTD[ 10 ], stringicc );
- }
- return true;
Advertisement
Add Comment
Please, Sign In to add comment