thirsty = 0 thirst_sound = 0 -- 0020 below increment = .0020 function thirst_init(e) end function thirst_main(e) -- Prompt(math.floor(thirsty)) -- TextCenterOnXColor(93,2,3,math.floor(thirsty).. "% dehydrated.",255,255,0) thirsty = thirsty + increment if thirsty < 100 and math.floor(thirsty) > 0 then -- thirsty = thirsty + increment TextCenterOnXColor(93,2,3,math.floor(thirsty).. "% dehydrated.",255,255,0) end if math.floor(thirsty) == 50 and thirst_sound == 0 then PlaySound(e,1) thirst_sound = 1 end if math.floor(thirsty) == 80 and thirst_sound ==1 then PlaySound(e,1) thirst_sound = 2 end if thirsty >= 100 then thirsty = 100 HurtPlayer(e,g_PlayerHealth) thirsty = 0 hungry = 0 thirst_sound = 0 anxiety = 0 radiation = 0 end end