Axel Posted August 9, 2011 Posted August 9, 2011 So i want to stop the spraycan damage. Is there a MTA function for such a script?
Castillo Posted August 9, 2011 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) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted August 9, 2011 Posted August 9, 2011 You welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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