Wisam Posted June 5, 2014 Posted June 5, 2014 Hello.. i want to make a script that when you kill a zombie your weapon skill that you killed with will raise +1 and im using zday zombie script.. i need zombie kill event but i dont know what to do because there is no zombie kill event in mta.. please help! ☣ Plauge Arma II DayZ Mod Server ☣ Here's the link to stay tuned with the server progress and features: https://forum.mtasa.com/viewtopic.php?f=114&t=96675 Get Ready to play DayZ like you never did before
فاّرس Posted June 5, 2014 Posted June 5, 2014 Use : onZombieWasted https://wiki.multitheftauto.com/wiki/Slothman/Zombies Sha67 سابقاً
Wisam Posted June 5, 2014 Author Posted June 5, 2014 Use : onZombieWastedhttps://wiki.multitheftauto.com/wiki/Slothman/Zombies i used: addEvent( "onZombieWasted", true ); addEventHandler( "onZombieWasted", root, function ( killer, weapon, bodypart ) if killer and killer ~= source then if bodypart == 9 and weapon == 69 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 50 ); end end end ); but when i kill nothing happens (i got dxweaponstart scripts to show wep stats) ☣ Plauge Arma II DayZ Mod Server ☣ Here's the link to stay tuned with the server progress and features: https://forum.mtasa.com/viewtopic.php?f=114&t=96675 Get Ready to play DayZ like you never did before
Max+ Posted June 5, 2014 Posted June 5, 2014 You need not use addEvent because onZombieWasted is a custom event of the zombie resource. addEventHandler( 'onZombieWasted', root, function ( killer, weapon, bodypart ) if (killer and killer ~= source) then if ( bodypart == 9 and weapon == 22) then setPedStat( killer, 69, getPedStat( killer, 69 ) + 50 ) end end end ) - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
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