Just show me the way to do it
#7

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"
Reply


Messages In This Thread
Just show me the way to do it - by pierhs - 22.07.2009, 20:21
Re: Just show me the way to do it - by James_Alex - 22.07.2009, 20:28
Re: Just show me the way to do it - by pierhs - 22.07.2009, 20:43
Re: Just show me the way to do it - by James_Alex - 22.07.2009, 20:48
Re: Just show me the way to do it - by pierhs - 22.07.2009, 20:55
Re: Just show me the way to do it - by James_Alex - 22.07.2009, 21:19
Re: Just show me the way to do it - by Joe Staff - 22.07.2009, 21:23
Re: Just show me the way to do it - by pierhs - 22.07.2009, 21:48

Forum Jump:


Users browsing this thread: 1 Guest(s)