MR:SADIQ Posted February 2, 2013 Share Posted February 2, 2013 ابغي كود يخلي سلاح nightstick للشرطة فقط + ادا شرطي ضرب واحد من العصابات ينقله لمكان محدد Link to comment
Bhrany-danger Posted February 2, 2013 Share Posted February 2, 2013 ججرب ذا، اذا ما شتغل قول function playerDamage(attacker, weapon) local Team = getTeamFromName("Grove") local aTeam = getPlayerTeam(attacker) local sTeam = getPlayerTeam(source) if Team == aTeam and Team ~= sTeam and (weapon == 3) then setElementPosition ( source, posX, posY, posZ ) end end addEventHandler("onPlayerDamage", root, playerDamage) Link to comment
MR:SADIQ Posted February 2, 2013 Author Share Posted February 2, 2013 ذا الكود سيرفر لو كلنت؟ Link to comment
MR:SADIQ Posted February 2, 2013 Author Share Posted February 2, 2013 خوك وين احط اسم لسلاح؟ Link to comment
Bhrany-danger Posted February 2, 2013 Share Posted February 2, 2013 (weapon == 3) then هو محطوط ، شفت رقم 3 هذا ايدي سلاح nightstick Link to comment
MR:SADIQ Posted February 2, 2013 Author Share Posted February 2, 2013 اوكي خوك مشكور بجربه وبرد عليك يمكن اطول شوي Link to comment
Bhrany-danger Posted February 2, 2013 Share Posted February 2, 2013 أوكي ، خوك ، بس لا تنسى تغير كلمة Grove الى اسم التيم اللي تبيه لما ينضرب لاعب فيه ينتقل لمكان محدد Link to comment
MR:SADIQ Posted February 2, 2013 Author Share Posted February 2, 2013 امبي Grove لكل الي فسيرفر ما عدا الشرطة Link to comment
Bhrany-danger Posted February 2, 2013 Share Posted February 2, 2013 جرب ذا function playerDamage(attacker, weapon) local Team = getTeamFromName("Police") local aTeam = getPlayerTeam(attacker) if Team and aTeam and Team == aTeam and (weapon == 3) then setElementPosition ( source, posX, posY, posZ ) end end addEventHandler("onPlayerDamage", root, playerDamage) الكود سيرفر تستبدل posX, posY, posZ بـ احداثيات المكان Link to comment
Bhrany-danger Posted February 2, 2013 Share Posted February 2, 2013 انت جربت تروح تيم police لازم تروح تيم police وتضرب واحد من تيم ثاني بـ Nightstick ولازم ما يكون من تيم الـ police + لازم تحط احداثيات المكان بدل posX, posY, posZ Link to comment
MR:SADIQ Posted February 2, 2013 Author Share Posted February 2, 2013 Bhrany-danger عطني ايميلك او اسمك فلفيس بوك ابي اكلمك خاص Link to comment
MrCor Posted February 2, 2013 Share Posted February 2, 2013 function playerDamage(attacker, wp) if getPlayerTeam ( source ) ~= getTeamFromName ( "Police" ) then if getPlayerTeam ( attacker ) == getTeamFromName ( "Police" ) then if wp == 3 then setElementPosition ( source, posX, posY, posZ ) end end end end addEventHandler("onPlayerDamage", root, playerDamage) غير مجرب ^^ Link to comment
MR:SADIQ Posted February 2, 2013 Author Share Posted February 2, 2013 شكرا كور جاري التجريب Link to comment
MR:SADIQ Posted February 2, 2013 Author Share Posted February 2, 2013 الكود شغال تمت الافادء يرجا الاغلاق 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