Kenix Posted March 30, 2011 Share Posted March 30, 2011 how to remove the rear it was impossible to kill with a knife. help guys. may be because I'm not sure. function stopingKnifeHeadKill ( attacker, weapon, bodypart ) if ( weapon == 4 ) then if ( bodypart == 9 ) then cancelEvent() end end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopingKnifeHeadKill ) Link to comment
Castillo Posted March 30, 2011 Share Posted March 30, 2011 Do you mean when the player is trying to stealth kill? addEventHandler("onPlayerStealthKill",getRootElement(), function (targetPlayer) cancelEvent() end) Link to comment
Kenix Posted March 30, 2011 Author Share Posted March 30, 2011 thank you so much I just did not know that there is an event for this thanks a lot Link to comment
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