Jump to content

Disable rocket damage


Notorious^

Recommended Posts

13 minutes ago, Zorgman said:

Try to check for the damage type instead of checking for the weapon:

https://wiki.multitheftauto.com/wiki/Damage_Types

 

Hi man.i was saw this page but i didint understand.rocket damage id 19.what can i do ? If you know could you say me ?

2 hours ago, KINGKHAN said:

as i guess you cant stop damage of a rocket weapon ! i tried before to stop dmage from rpg weapon  but i failed instead of that you can stop the fire function or aim _weapon function on rpg weapon spawned

Hello man . Bro i just want close damage for pvp.just players can kill zombies.some zombie servers using this.

Link to comment
34 minutes ago, Zorgman said:

 

yes ! ı maked it thanks for helps but last question how can ı just disable rocket damage in las venturas ? do you know ? ı tried this but not working :C

addEventHandler("onClientPlayerDamage", root, function(stopRocketDamage) -- 
       if ( weapon == 19 ) then --if the weapon used was the rocket
                local x,y,z = getElementPosition(source) -- player position
                local zone = getZoneName(x,y,z, true) -- position name
                if zone == "Las Venturas" then  -- if position nae las venturas
                        cancelEvent() -- eventi iptal et
                end
        end
end)

 

okay all is done.problems solved thanks for all

Edited by Notorious^
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...