General > Developers Corner

*Solved* Need help with stopping player damage.

<< < (2/2)

Cobalt:
You need to put it in the gamemode's files, not using hook.Add. At least that's how I've gotten those types of things to work.

LuaTenshi:
How exactly are you trying to stop the player from taking damage, I see a few variables commented out...


--- Code: ---dualactive = True or False. -- This should be either true, or false. Not both.
dualchallenger = calling_ply -- How are you getting the calling_ply here?
dualplayer = target_ply -- How are you getting the target_ply here?

--- End code ---

Linkis20:
Never mind i finaly found what the problem was.

The hook worked but i forgot to put dualactive to true.  :-\

Well it is working that is all that matters.
Thanks for the tips and helping me.

Navigation

[0] Message Index

[*] Previous page

Go to full version