Gordon_G Posted September 12, 2018 Posted September 12, 2018 I have a problem with this thing. Well, when I try to change this property for weapons it's always different. Let's take an example : If I do setWeaponProperty("Deagle", "damage", "poor", 90) It will deal 30 damage to the player. But, if I do setWeaponProperty("Shotgun", "damage", "poor", 10) It will deal 50 damage to the player. I think it has something to do with default weapon's damage but, should I use "onClientPlayerDamage" instead, cancel the event and then apply the damage ? That's pretty fastidious. Gordon#6977
iMr.WiFi..! Posted September 12, 2018 Posted September 12, 2018 1 hour ago, Gordon_G said: I have a problem with this thing. Well, when I try to change this property for weapons it's always different. Let's take an example : If I do setWeaponProperty("Deagle", "damage", "poor", 90) It will deal 30 damage to the player. But, if I do setWeaponProperty("Shotgun", "damage", "poor", 10) It will deal 50 damage to the player. I think it has something to do with default weapon's damage but, should I use "onClientPlayerDamage" instead, cancel the event and then apply the damage ? That's pretty fastidious. You can use it instead, but don't forgot to apply the distance between attacker and player ( Lack the damage whenever the distance become more far. ) 1 Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
Gordon_G Posted September 12, 2018 Author Posted September 12, 2018 Huh... That's boring that we can't use setWeaponProperty. Anyway, thanks. Gordon#6977
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