#Major . Posted June 16, 2018 Share Posted June 16, 2018 السلام عليكم addEventHandler("onPlayerDamage",root, function( attacker, weapon, bodypart, loss ) if ( getElementData(attacker, "1shot") == true ) then local wep = getPlayerWeapon(attacker) if ( wep == 24 ) or ( wep == 25 ) or ( wep == 33 ) or ( wep == 34 ) then local heal = getElementHealth(source) setElementHealth(source, heal-100) end end end ) ابغا اصفي الدي بق لكن هنا فيه مشكلة في تحقق من الداتا الدي بي ازعجني يقول الارقمنت الاول من تحقق الداتا فيه مشكله المود شغال كويس وكلشي شغال لكن ابي انضف الدي بي Link to comment
Abdul KariM Posted June 16, 2018 Share Posted June 16, 2018 if attacker and getElementData(attacker, "1shot") == true ) then 1 Link to comment
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