22.07.2009, 21:23
No you didn't, AfterHop is the callback he made for when the player has spawned, you put the Switch function under OnPlayerSpawn, you should set the timer to 1000, then in the callback "AfterHop" have it do an 'if' statement to see if the player's health is at 50% or higher, then it would TogglePlayerControllable 0, else it would add player health 1 then do the timer again.
the "d" in the SetTimerEx shows that the next variable is a number and goes into the callback's parameters, in this case "playerid"
the "d" in the SetTimerEx shows that the next variable is a number and goes into the callback's parameters, in this case "playerid"

