DRW Posted April 26, 2015 Posted April 26, 2015 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... Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
WhoAmI Posted April 26, 2015 Posted April 26, 2015 https://wiki.multitheftauto.com/wiki/On ... ayerDamage On example you have what you want. You must change weapon ID only.
Mr.unpredictable. Posted April 26, 2015 Posted April 26, 2015 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.
DRW Posted April 26, 2015 Author Posted April 26, 2015 function stopRPG ( attacker, weapon, bodypart ) if ( weapon == 36 ) then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopRPG) Still not working Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
DRW Posted April 26, 2015 Author Posted April 26, 2015 Did you add it client side? Any errors? Client-sided and no errors. Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
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