So im working on a hunger system an the timer either always fails or it doesn't start in the first place, can I have help with this hunger code?
[CODE]function GM:PlayerSpawn(ply)
ply:SetGravity(0.9)
ply:SetMaxHealth(100)
ply:SetRunSpeed(300)
ply:SetWalkSpeed(200)
ply:Give("gmod_tool")
ply:Give("weapon_physgun")
ply:Give("cw_m1911")
ply:Flashlight( false )
ply:AllowFlashlight( true )
ply:SetupHands()
timer.Create( "Hunger", 1, 0, function() ply:SetNWInt("playerHunger", ply:GetNWInt("playerHunger") - .25) end )
end [/CODE]
Also, So im at the point in my gamemode where it can go 3 ways, Wilderness survival, Post Apocalypse, or Apocalypse, which way should I do it so it would be more enjoyable than other gamemodes?