SAM!! Posted June 27, 2018 Share Posted June 27, 2018 االسلام عليكم ورحمه الله ابي تصحيح للكود ذا الكود حق لو احد اخد بوكس واحد يموت ابي لو الشخص مات تروح منه هالخاصية ويصير عادي محاولتي addEventHandler("onPlayerWasted", root, function(attacker, weapon, bodypart) if ( getElementData(attacker,"Damage") == true ) then if attacker and attacker ~= source and getElementType(attacker) == "player" then if weapon == 0 then killPed(source, attacker, weapon, bodypart) ==false) ---- ذا من عندي سويتة فولس end end end end ) Link to comment
بويكا Posted June 27, 2018 Share Posted June 27, 2018 (edited) setElementData ( attacker, "Damage", false ) Edited June 27, 2018 by بويكا Link to comment
MA[S]RIY Posted June 27, 2018 Share Posted June 27, 2018 36 minutes ago, SAM!! said: االسلام عليكم ورحمه الله ابي تصحيح للكود ذا الكود حق لو احد اخد بوكس واحد يموت ابي لو الشخص مات تروح منه هالخاصية ويصير عادي محاولتي addEventHandler("onPlayerWasted", root, function(attacker, weapon, bodypart) if ( getElementData(attacker,"Damage") == true ) then if attacker and attacker ~= source and getElementType(attacker) == "player" then if weapon == 0 then killPed(source, attacker, weapon, bodypart) ==false) ---- ذا من عندي سويتة فولس end end end end ) Damage انا الحين مو فاهم وين الخاصيه بس لو تقصد الخاصيه هي الداتا يصير كذا addEventHandler("onPlayerWasted", root, function(attacker, weapon, bodypart) if ( getElementData(attacker,"Damage") == true ) then if attacker and attacker ~= source and getElementType(attacker) == "player" then if weapon == 0 then setElementData( attacker, "Damage", false ) end end end end ) killPed(source, attacker, weapon, bodypart) ==false) ---- ذا من عندي سويتة فولس وهذا غلط ^^ واصلا م له داعي الحدث لما الاعب يموت انت تبي تموته وهو يموت Link to comment
SAM!! Posted June 27, 2018 Author Share Posted June 27, 2018 MARIY وقف المود ياغالي من كودك Link to comment
بويكا Posted June 27, 2018 Share Posted June 27, 2018 addEventHandler("onPlayerWasted", root, function(attacker, weapon, bodypart) if ( getElementData (attacker, "Damage" ) == true ) then if attacker and attacker ~= source and getElementType(attacker) == "player" then setElementData( attacker, "Damage", false ) end end end ) -- جرب Link to comment
Trefeor Posted June 27, 2018 Share Posted June 27, 2018 'onPlayerWasted' بالفنكشن الارقمنت الاول مو اللاعب الي قتل Link to comment
#Major . Posted June 28, 2018 Share Posted June 28, 2018 (edited) addEventHandler("onPlayerWasted", root, function(_, killer) if killer and killer ~= source and getElementType(killer) == "player" then if ( getElementData (killer, "Damage" ) == true ) then setElementData( killer, "Damage", false ) end end end ) -- جرب Edited June 28, 2018 by *RayaN-Alharbi. 1 Link to comment
بويكا Posted June 28, 2018 Share Posted June 28, 2018 10 minutes ago, *RayaN-Alharbi. said: addEventHandler("onPlayerWasted", root, function(_, killer) if killer and killer ~= source and getElementType(killer) == "player" then if ( getElementData (killer, "Damage" ) == true ) then setElementData( killer, "Damage", false ) end end end ) -- جرب .يعطيك العافيه م ركزت * للفنكشن 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