MR:SADIQ Posted February 2, 2013 Posted February 2, 2013 ابغي كود يخلي سلاح nightstick للشرطة فقط + ادا شرطي ضرب واحد من العصابات ينقله لمكان محدد
Bhrany-danger Posted February 2, 2013 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)
Bhrany-danger Posted February 2, 2013 Posted February 2, 2013 (weapon == 3) then هو محطوط ، شفت رقم 3 هذا ايدي سلاح nightstick
MR:SADIQ Posted February 2, 2013 Author Posted February 2, 2013 اوكي خوك مشكور بجربه وبرد عليك يمكن اطول شوي
Bhrany-danger Posted February 2, 2013 Posted February 2, 2013 أوكي ، خوك ، بس لا تنسى تغير كلمة Grove الى اسم التيم اللي تبيه لما ينضرب لاعب فيه ينتقل لمكان محدد
MR:SADIQ Posted February 2, 2013 Author Posted February 2, 2013 امبي Grove لكل الي فسيرفر ما عدا الشرطة
Bhrany-danger Posted February 2, 2013 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 بـ احداثيات المكان
Bhrany-danger Posted February 2, 2013 Posted February 2, 2013 انت جربت تروح تيم police لازم تروح تيم police وتضرب واحد من تيم ثاني بـ Nightstick ولازم ما يكون من تيم الـ police + لازم تحط احداثيات المكان بدل posX, posY, posZ
MR:SADIQ Posted February 2, 2013 Author Posted February 2, 2013 Bhrany-danger عطني ايميلك او اسمك فلفيس بوك ابي اكلمك خاص
MrCor Posted February 2, 2013 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) غير مجرب ^^
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