Axel Posted August 9, 2011 Share Posted August 9, 2011 So i want to stop the spraycan damage. Is there a MTA function for such a script? Link to comment
Castillo Posted August 9, 2011 Share Posted August 9, 2011 -- client side addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), function ( attacker, weapon, bodypart ) if ( weapon == 41 ) then -- if the weapon used was the Spraycan cancelEvent() -- we cancel the damage to the player. end end) 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