[DONE]* Posted December 22, 2014 Share Posted December 22, 2014 السلام عليكم و رحمة الله و بركاته ____________________________________________________________________________________________________________ كيف الحال شباب انشاء الله بخير ____________________________________________________________________________________________________________ كنت طالب كود بسيط لما واحد يكون بتيم معين مايقدر يقتل اي احد ____________________________________________________________________________________________________________ وشكرا لكم ---------------------------------------------------------------------------------------------------------------------------------------------------------- Link to comment
EH10 Posted December 22, 2014 Share Posted December 22, 2014 جـرب , addEventHandler ("onClientPlayerDamage", root, function() if getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( "TeamName" ) then cancelEvent () end end ) Link to comment
Mr.R Posted December 22, 2014 Share Posted December 22, 2014 جـرب , addEventHandler ("onClientPlayerDamage", root, function() if getPlayerTeam ( source ) and getPlayerTeam ( source ) == getTeamFromName ( "TeamName" ) then cancelEvent () end end ) getPlayerTeam ( source ) and getPlayerTeam ( source ) ?????????? Link to comment
The Don Posted December 22, 2014 Share Posted December 22, 2014 (edited) local TeamName = "" -- اسم الفريق addEventHandler('onClientPlayerDamage',localPlayer, function () if ( getPlayerTeam ( localPlayer ) ) then if ( getPlayerTeam ( localPlayer ) == getTeamFromName( TeamName ) ) then cancelEvent() end end end ) اذا ما خاب ظني + يآ ريت الي يدققو في اكواد الناس ويقولو ؟؟؟؟؟؟؟ يآ ريت بدال ما تسوي لي المدرك واانا الي يكشف اخطاء الناس حاول تصلحها يكون ابرك لك او لا تكتب رد ترى مو لازم Edit: تم التعديل Edited December 22, 2014 by Guest Link to comment
</Mr.Tn6eL> Posted December 22, 2014 Share Posted December 22, 2014 local TeamName = "" -- اسم الفريق addEventHandler('onClientPlayerDamage',root, function () if ( getPlayerTeam ( localPlayer ) ) then if ( getPlayerTeam ( localPlayer ) == getTeamFromName( TeamName ) ) then cancelEvent() end end end ) اذا ما خاب ظني + يآ ريت الي يدققو في اكواد الناس ويقولو ؟؟؟؟؟؟؟ يآ ريت بدال ما تسوي لي المدرك واانا الي يكشف اخطاء الناس حاول تصلحها يكون ابرك لك او لا تكتب رد ترى مو لازم local TeamName = "" -- اسم الفريق addEventHandler('onClientPlayerDamage',localPlayer, function () if ( getPlayerTeam ( localPlayer ) ) then if ( getPlayerTeam ( localPlayer ) == getTeamFromName( "TeamName" ) ) then cancelEvent() end end end ) Link to comment
[DONE]* Posted December 22, 2014 Author Share Posted December 22, 2014 شباب الكود حطيته ما ظبت شوفوه في شي غلط local TeamName = "Example" addEventHandler('onClientPlayerDamage',localPlayer, function () if ( getPlayerTeam ( localPlayer ) ) then if ( getPlayerTeam ( localPlayer ) == getTeamFromName( "Example" ) ) then cancelEvent() end end end ) Link to comment
#DRAGON!FIRE Posted December 23, 2014 Share Posted December 23, 2014 بالنسبة لصاحب الموضوع جرب : addEventHandler ( "onClientPlayerDamage", localPlayer, function ( attacker ) if ( attacker and attacker ~= source and getElementType( attacker ) == "player" ) then if ( getPlayerTeam ( attacker ) and getPlayerTeam ( attacker ) == getTeamFromName( "Example" ) ) then cancelEvent ( ) end end end ) Link to comment
[DONE]* Posted December 23, 2014 Author Share Posted December 23, 2014 بالنسبة لصاحب الموضوع جرب : addEventHandler ( "onClientPlayerDamage", localPlayer, function ( attacker ) if ( attacker and attacker ~= source and getElementType( attacker ) == "player" ) then if ( getPlayerTeam ( attacker ) and getPlayerTeam ( attacker ) == getTeamFromName( "Example" ) ) then cancelEvent ( ) end end end ) مشكؤؤؤؤؤؤر, جزاك الله خير Link to comment
Mr.R Posted December 23, 2014 Share Posted December 23, 2014 للحين مو فاهم ليه مكررين فنكشن getPlayerTeam زي كذا getPlayerTeam ( attacker ) and getPlayerTeam ( attacker ) -_-" Link to comment
</Mr.Tn6eL> Posted December 23, 2014 Share Posted December 23, 2014 للحين مو فاهم ليه مكررين فنكشن getPlayerTeam زي كذا getPlayerTeam ( attacker ) and getPlayerTeam ( attacker ) -_-" يتحقق انه بالتيم اولا بعدين يتحقق ان بالتيم كذا 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