Klesh Posted January 15, 2012 Posted January 15, 2012 I want to cancel kill, nobody cant kill. function playerDamage_text ( attacker, weapon, bodypart, loss ) --when a player is damaged cancelEvent() end addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage_text )
Thelastride Posted January 15, 2012 Posted January 15, 2012 You need to do it client side function cancelkill ( attacker, weapon, bodypart ) cancelEvent() end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(),cancelkill )
Klesh Posted January 15, 2012 Author Posted January 15, 2012 Thanks i didn't see that point, my fault.
BriGhtx3 Posted January 16, 2012 Posted January 16, 2012 Anyway you should know you can't cancel damage/kill events serverside
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now