igthomas Posted July 1, 2012 Posted July 1, 2012 I was trying to mess with setWeaponProperty and wanted to make the katana the weapon that does 1 hit 1 kill but appearantly didn't work local rangeSet = setWeaponProperty (8, "pro", "damage", 10000 ) if (rangeSet) then outputChatBox("Your katana damage is maximized") end Here's the script. The script works because I see the outputChatBox message but don't know why the damage isn't working
TAPL Posted July 1, 2012 Posted July 1, 2012 You don't need setWeaponProperty addEventHandler("onPlayerDamage",root, function(attacker, weapon) if weapon == 8 then killPed(source,attacker,weapon) end end)
igthomas Posted July 1, 2012 Author Posted July 1, 2012 Thank you man it worked didn't know that I didn't need to use setWeaponProperty
Moderators IIYAMA Posted July 2, 2012 Moderators Posted July 2, 2012 Note: Weapon property only works for these weapons, see wikimta. https://wiki.multitheftauto.com/wiki/SetWeaponProperty grenade teargas molotov pistol silenced_pistol desert_eagle shotgun sawnoff_shotgun spas12_shotgun uzi mp5 ak47 m4 tec9 rifle sniper_rifle rocket_launcher rocket_launcher_hs flamethrower minigun satchel detonator spraycan extinguisher camera
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