public updatetime(){ new string[256]; if(worldtimef == 2 && worldtimef2 == 3 && worldtimes == 5 && worldtimet == 9){ worldtimef = 0; worldtimef2 = 0; worldtimes = 0; worldtimet = 0; worlday++; #if DEBUG_MODE == true SendClientMessageToAll(COLOR_GREEN,"[DEBUG] Yay, a new day."); #endif } else if(worldtimes == 5 && worldtimet == 9) { worldtimef2++; worldtimes = 0; worldtimet = 0; #if DEBUG_MODE == true SendClientMessageToAll(COLOR_GREEN,"[DEBUG] An hour later..."); #endif } else if(worldtimet == 9) { worldtimes++; worldtimet = 0; #if DEBUG_MODE == true SendClientMessageToAll(COLOR_GREEN,"[DEBUG] 10 minutes later..."); #endif } else if(worldtimef2 == 9 && worldtimes == 5 && worldtimet == 9) { worldtimef2 = 0; worldtimef++; worldtimes = 0; worldtimet = 0; #if DEBUG_MODE == true SendClientMessageToAll(COLOR_GREEN,"[DEBUG] 10 hours later..."); #endif } else { worldtimet++; #if DEBUG_MODE == true SendClientMessageToAll(COLOR_GREEN,"[DEBUG] 1 minute later..."); #endif } format(string, sizeof(string), "%i%i:%i%i", worldtimef,worldtimef2,worldtimes,worldtimet); TextDrawHideForAll(showtime); showtime = TextDrawCreate(540, 25, string); TextDrawSetShadow(showtime, 0); TextDrawSetProportional(showtime, true); TextDrawColor(showtime, COLOR_WHITE); TextDrawSetOutline(showtime, 1); TextDrawLetterSize(showtime, 1, 1); TextDrawShowForAll(showtime); }