So I am having issues with my player getting their health set when they spawn.
hook.Add("PlayerSpawn","LoadHealth", function(ply) local lvl = ply:GetNWInt("LevelNum")-1 ply:SetHealth(200 + lvl * 5) end)
Its supposed the health on spawn. By Base health being 100 but adding the players cuttent level * 5 to the health. But it is not working.
[editline]29th May 2013[/editline]
So guys I changed the hook.Add to PlayerDeath instead of PlayerSpawn. And upon death it ran my function that’s hooked. So why is it glitching when I run it with player spawn? Is there a alternative? I tried printing to see if there were errors but there are none. Help please, this is sincerely starting to aggravate me. Garry added many great things with GMOD13 Update. But he also challenged us new comers more because the experience level for us still isn’t there.