View Single Post
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-09-2020 , 11:47   Re: City Temperature on join. | Updated ML (Sat 04/04/2020)
Reply With Quote #33

Quote:
Originally Posted by Napoleon_be View Post
Add measure units such as Farenheit or Celsius. 15° farenheit is pretty cold, as 15° Celcius is a whole lot warmer.
Have you looked at the script? Both already exist.
Code:
92     g_cvar_units = register_cvar("sv_units", "imperial"); 254     get_pcvar_string(g_cvar_units, buf, charsmax(buf)); 255     if (containi(buf, "imperial") > -1 ) 256     { 257     iRED_TEMP = 70; 258     iBLU_TEMP = 45; 259     iGRN_HI = 69; 260     iGRN_LO = 46; 261     } 262     else if (containi(buf, "metric") > -1 ) 263     { 264     iRED_TEMP = 15; 265     iBLU_TEMP = -15; 266     iGRN_HI  = 14; 267     iGRN_LO = -14; 268     }
__________________
DJEarthQuake is offline