Jump to content

Weapon property not changing


DRW

Recommended Posts

Posted
function propiedad() 
setWeaponProperty (36, "poor","damage", 0) 
end 
  
addEventHandler ("onResourceStart", getRootElement(),propiedad) 

I try to make the RPG to not be able to kill a player but only a vehicle, but it's not working, players still die...

Posted
function propiedad() 
setWeaponProperty (36, "poor","damage", 0) 
end 
  
addEventHandler ("onResourceStart", getRootElement(),propiedad) 

I try to make the RPG to not be able to kill a player but only a vehicle, but it's not working, players still die...

thgis will only make your weapon do less damage.

Posted
function stopRPG ( attacker, weapon, bodypart ) 
if ( weapon == 36 ) then 
cancelEvent() 
end 
end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopRPG) 

Still not working

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...