MOMO3011 Posted January 7, 2014 Share Posted January 7, 2014 ابي كود او مود اللي ما حد يقدر يقتل صاحبه في قروب Link to comment
ALKiNg[Q.4]SLOOM Posted January 8, 2014 Share Posted January 8, 2014 "onClientPlayerDamage" getElementData getElementType Link to comment
The Killer Posted January 8, 2014 Share Posted January 8, 2014 addEventHandler("onClientPlayerDamage", localPlayer, function(attacker) if attacker and getElementType(attacker) == "player" and attacker ~= source then local g1 = getElementData(source, "gang") local g2 = getElementData(attacker, "gang") if g1 and g2 and g1 == g2 then cancelEvent() end end end ) Link to comment
#DRAGON!FIRE Posted January 9, 2014 Share Posted January 9, 2014 # لم يتم التججربة . Groups = { ["Your Name Group"] = true, } local cancel = "true" -- true or false Just . addEventHandler ( "onClientPlayerDamage", localPlayer, function ( attacker _,_ ) if attacker and attacker ~= source then if Groups[getElementData( source , "Group" )] and Groups[getElementData( attacker, "Group" )] then cancelEvent ( tostring ( cancel ) ); end; end; end ); Link to comment
The Killer Posted January 9, 2014 Share Posted January 9, 2014 اتوقع ان كودي مب غلط ! Link to comment
./BlackBird# Posted January 9, 2014 Share Posted January 9, 2014 لا مب غلط بس حق زاحف فيه جدول بس خطأ كوده Link to comment
The Killer Posted January 10, 2014 Share Posted January 10, 2014 ادري انا بس قصدي ان انا طرحت كود وشغال يعني ما يحتاج يطرح كود ثاني الا اذا كان كودي غلط !! Link to comment
#DRAGON!FIRE Posted January 10, 2014 Share Posted January 10, 2014 @ The Killer : الكود حقك ما فيه غلط , بس الكود حقي طارحه من قبل . @ MJNONFIK : معاك حق في غلط يصير كذا ... Groups = { ["Your Name Group"] = true, } addEventHandler ( "onClientPlayerDamage", localPlayer, function ( attacker _,_ ) if attacker and attacker ~= source then if Groups[getElementData( source , "Group" )] and Groups[getElementData( attacker, "Group" )] then cancelEvent ( ); end; end; end ); Link to comment
The Killer Posted January 10, 2014 Share Posted January 10, 2014 كيف طارحه من قبل شف ردي انا اول رديت ! بعدين انت @_@ Link to comment
#DRAGON!FIRE Posted January 10, 2014 Share Posted January 10, 2014 كيف طارحه من قبل شف ردي انا اول رديت ! بعدين انت@_@ انا اقصد اني طارحه بموضوع ثاني من قبل . @ 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