Jump to content

help pls


Recommended Posts

Posted

hey i just attached a rocket launcher to my car, but i wanted to reduce the damage rocket does like if it hits the car it should only do 10% damage not blast the car

i tried this but nothing happend

setWeaponProperty(35, "poor", "damage", 10) 

can any one tell what should i do?

Posted
  
function setProp() 
setWeaponProperty(35, "poor", "damage", 10 ) 
end 
setTimer(setProp,5000,0) 
  

Try this!

Maybe your code din't execute.

Posted
  
function setProp() 
setWeaponProperty(35, "poor", "damage", 10 ) 
end 
setTimer(setProp,5000,0) 
  

Try this!

Maybe your code din't execute.

Why would you execute that every 5 seconds?

Posted
  
function setProp() 
setWeaponProperty(35, "poor", "damage", 10 ) 
end 
setTimer(setProp,5000,0) 
  

Try this!

Maybe your code din't execute.

it still blasts the car i don't want it to blast the car it should only do little damage

Posted

I don't think you can actually modify that.

P.S: Why would you execute the same code every 5 seconds, infinite times?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Can't you use the event onClientVehicleDamage and cancel the event? Check what damaged the car, if it was a rocket - remove 10% of the hit vehicle's health...?

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

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