MR:SADIQ Posted May 6, 2013 Share Posted May 6, 2013 ابي فكشن اذا واحد ضرب واحد بسلاح يطلع بشات (قام(اسم الاعب الي ضرب) بضرب (الاعب الي انضرب ويكون لتيم محدد Link to comment
فاّرس Posted May 6, 2013 Share Posted May 6, 2013 (edited) 'onPlayerDamage' outputChatBox getTeamName getPlayerTeam Edited May 6, 2013 by Guest Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 "onPlayerDamage" getPlayerTeam getTeamName outputChatBox getRootElement getPlayerName Link to comment
MR:SADIQ Posted May 6, 2013 Author Share Posted May 6, 2013 بس بسال شنو الفرق بين فكشناتك وفكشناته ونتيجة نفس الشي؟ Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 ^ تشوفنآ حطينآ شيء مختلف؟ انا يوم احطة انت ماكنت حاط مثلي كنت حاط بس الحدث انت عدلت ردكـ !ذذ Link to comment
MR:SADIQ Posted May 6, 2013 Author Share Posted May 6, 2013 addEventHandler ( "onPlayerDamage", getRootElement) getPlayerTeam ( player thePlayer ) outputChatBox ( getPlayerName ( source ) .. " ضرب: " .. getPlayerName ( playerName ) ) getRootElement ( ) Link to comment
кιηg-αвα∂у Posted May 6, 2013 Share Posted May 6, 2013 (edited) جرب addEventHandler ( "onPlayerDamage", getRootElement(), function( attacker ) if ( getTeamName( getPlayerTeam( attacker ) ) == "اسم التيم" ) then outputChatBox ( "" .. getPlayerName ( source ) .. " بضرب : " .. getPlayerName ( attacker ) .. " قام" ) end end ) Edited May 6, 2013 by Guest Link to comment
فاّرس Posted May 6, 2013 Share Posted May 6, 2013 جرب, addEventHandler("onPlayerDamage",root, function (attacker) if (attacker and attacker ~= source) then if (getPlayerTeam (source)) and ( getTeamName ( getPlayerTeam ( source ) ) == "NameTeam" ) then outputChatBox(""..getPlayerName(source).."Has beed damaged") end end end) Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 Wrong ^ كلهم ذذ : addEventHandler("onPlayerDamage",getRootElement(), function ( attacker ) local team = getPlayerTeam ( attacker ) if ( attacker and attacker ~= source and team and getTeamName( team ) == "Team Name" ) then outputChatBox("* الاعب : "..getPlayerName(attcker).." ضرب : "..getPlayerName(source).." ",getRootElement(),255,0,0) 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