• Lua question about HP
    6 replies, posted
-- PLZ DELETE THIS THREAD --
How can someone with 0 hp use anything if he would be dead?
-- PLZ DELETE THIS THREAD --
[QUOTE=Pwned231;34755807]That's the problem, he don't die :S I forgot to mean the gamemode, is TTT.[/QUOTE]I think you mean if his HP is higher than 0. You can use the ent:OnUse function.
-- PLZ DELETE THIS THREAD --
[QUOTE=Pwned231;34755844]Im trying to make something like the health station on TTT but instead of heal it gives you damage, that works, but when you reach the 0 hp you don't die, only if someone shot that person. EDIT: Maybe something like If Guy who use key, health = 0, then KILL. ?[/QUOTE]Since you don't know lua, the easiest way would be to copy the health station code and change the name/amount it heals to negative.
-- PLZ DELETE THIS THREAD --
Sorry, you need to Log In to post a reply to this thread.