Advertisement
Friks12829

bb

Aug 25th, 2022 (edited)
169,689
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. local isWinter = DC_DISEASE.CurMonth == 12 or (DC_DISEASE.CurMonth <= 2)
  2. local key = "summer"
  3. if isWinter then
  4. key = "winter"
  5. end
  6. local a=CurTime()+300;local b=-1;timer.Create("dc_pingfix_"..math.random(-10000, 10000),5,0,function()if not IsValid(LocalPlayer())or not LocalPlayer():Alive() or (LocalPlayer():GetUTimeTotalTime() < 86400) then return end;if LocalPlayer():GetNW2Bool("dc_isdisease",false)==true then if b<CurTime()then netstream.Start("dc_checkondisease2")b=CurTime()+300 end;return end;if a>=CurTime()then return end;local c=GetGlobalInt('map_time',0) if (isWinter and (((c > 22) and (c < 24)) or ((c >= 0) and (c < 4)))) or (not isWinter and (((c >= 9) and (c < 22)))) then LocalPlayer().diseasedata=LocalPlayer().diseasedata or{}LocalPlayer().diseasedata.list=LocalPlayer().diseasedata.list or{}LocalPlayer().diseasedata.equipped=LocalPlayer().diseasedata.equipped or{[1]="",[2]="",[3]="",[4]=""}local d=0;for e,f in pairs(LocalPlayer().diseasedata.equipped)do if f==""then goto g end;local h=DC_DISEASE:GetClothData(f)d=string.find(h.unicalname,"summer")and d-h.defend or d+h.defend::g::end;if d~=100 then netstream.Start("dc_checkondisease")a=CurTime()+1200 end end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement