Ja[B]er[X]Pro Posted February 1, 2016 Share Posted February 1, 2016 السلام عليكم ورحمة الله وبركاته انا مسوي مهمة لكن ابي اسوي الاعبين بتيم ما يقدرون يقتلون الاعبين الاخرين بنفس التيم Link to comment
Ahmed Ly Posted February 1, 2016 Share Posted February 1, 2016 (edited) السلام عليكم ورحمة الله وبركاتهانا مسوي مهمة لكن ابي اسوي الاعبين بتيم ما يقدرون يقتلون الاعبين الاخرين بنفس التيم setTeamFriendlyFire Edited February 1, 2016 by Guest Link to comment
Ja[B]er[X]Pro Posted February 1, 2016 Author Share Posted February 1, 2016 السلام عليكم ورحمة الله وبركاتهانا مسوي مهمة لكن ابي اسوي الاعبين بتيم ما يقدرون يقتلون الاعبين الاخرين بنفس التيم getTeamFriendlyFire شكراً ؟؟ setTimer( function() outputChatBox ('* [ لــدخول مهمه مخدرات اكـتب شات مخدرات او شرطه') end,5000,0) addEventHandler ('onPlayerChat',root, function (msg) if msg == 'مخدرات' then setElementPosition (source,2195.28418,-1142.00562,1029.79688) setElementInterior(source,15) setPlayerTeam(source,noteam) setPlayerSkin (source, 27) setTeamFriendlyFire (noteam,false) end end) addEventHandler ('onPlayerChat',root, function (msg) if msg == 'شرطة' then setElementPosition (source,2221.69556,-1149.86292,1025.79688) setElementInterior(source,15) setPlayerTeam(source,police) setPlayerSkin (source, 265) setTeamFriendlyFire (police,false) end end) local police = createTeam("M.6-P",0,0,255) local noteam = createTeam("M.6-C",0,255,0) Link to comment
xBeSoOo Posted February 1, 2016 Share Posted February 1, 2016 بيصير الي برا المهمة كمان ما يمديهم يقتلو بعض setTeamFriendlyFire لو سويت بال جرب ذي الطريقة اولا سوي داتا للشرطة وللحرامية ياخذها لما يدخل المهمة وبعدها سوي حدث لما الاعب يدمج وسوي تحقق ان اللاعب الي يدمج معه داتا الحرامية وكمان تحقق ان اللاعب الي يدمجه نفس تيمه وببعدها سوي كانسل ايفنت وسوي حدث لما لاعب يموت تحقق اذا معه الداتا حقت الحرامية او الشرطة واحذفها بس مب متاكد من الطريقة بس كذا جلست افكر فيها جرب انت وذي الفنكشنات setElementData getElementData "onPlayerDamage" or "onClientPlayerDamage" cancelEvent "onPlayerWasted" or "onClientPlayerWasted" removeElementData Link to comment
nxFairlywell Posted February 1, 2016 Share Posted February 1, 2016 يوم يدخل المهمة حط للاعب اللي دخل داتا setElementData(element, "in_mission", true) لما يطلع اللاعب حط له داتا setElementData(element, "in_mission", false) addEventHandler("onClientPlayerDamage", root, function( attacker ) if getPlayerTeam(source) == getPlayerTeam(attacker) and getElementData(source, "in_mission") and getElementData(attacker, "in_mission") then cancelEvent( ) end end ) Link to comment
Ja[B]er[X]Pro Posted February 2, 2016 Author Share Posted February 2, 2016 يوم يدخل المهمة حط للاعب اللي دخل داتا setElementData(element, "in_mission", true) لما يطلع اللاعب حط له داتا setElementData(element, "in_mission", false) addEventHandler("onClientPlayerDamage", root, function( attacker ) if getPlayerTeam(source) == getPlayerTeam(attacker) and getElementData(source, "in_mission") and getElementData(attacker, "in_mission") then cancelEvent( ) end end ) هل هذا الكود جاهز اضعه فقط او يبي تعديلات واين مكان اسم التيم Link to comment
HassoN Posted February 2, 2016 Share Posted February 2, 2016 هل هذا الكود جاهز اضعه فقط او يبي تعديلات واين مكان اسم التيم مأتحط اسم تيم ولا شي ، انت مثلا حاط فنكشن لما يدخل على الماركر ينقله للمهمة للاعب حط بالسطر الي تحته setElementData(player,"in_mission",true) ثم لو مثلا فيه مكان يطلع منه الاعب من المهمة كـ ماركر او يموت مثلا داخل المهمة فـ حط setElementData(player,"in_mission",false) وبس ، حط كود حق الي يطفي الدامج الي حاطه فوق جينيرال وانحلت .. لو مافهمت لسا ضيفني سكايب وبفهمك كل شي حبة حبة Link to comment
Ja[B]er[X]Pro Posted February 2, 2016 Author Share Posted February 2, 2016 هل هذا الكود جاهز اضعه فقط او يبي تعديلات واين مكان اسم التيم مأتحط اسم تيم ولا شي ، انت مثلا حاط فنكشن لما يدخل على الماركر ينقله للمهمة للاعب حط بالسطر الي تحته setElementData(player,"in_mission",true) ثم لو مثلا فيه مكان يطلع منه الاعب من المهمة كـ ماركر او يموت مثلا داخل المهمة فـ حط setElementData(player,"in_mission",false) وبس ، حط كود حق الي يطفي الدامج الي حاطه فوق جينيرال وانحلت .. لو مافهمت لسا ضيفني سكايب وبفهمك كل شي حبة حبة setTimer( function() outputChatBox ('* [ لــدخول مهمه مخدرات اكـتب شات مخدرات او شرطه') end,5000,0) addEventHandler ('onPlayerChat',root, function (msg) if msg == 'مخدرات' then setElementPosition (source,2195.28418,-1142.00562,1029.79688) setElementInterior(source,15) setPlayerTeam(source,noteam) setPlayerSkin (source, 27) setElementData(player,"in_mission",true) end end) addEventHandler ('onPlayerChat',root, function (msg) if msg == 'شرطة' then setElementPosition (source,2221.69556,-1149.86292,1025.79688) setElementInterior(source,15) setPlayerTeam(source,police) setPlayerSkin (source, 265) setElementData(player,"in_mission",true) end end) local police = createTeam("M.6-P",0,0,255) local noteam = createTeam("M.6-C",0,255,0) addEventHandler("onClientPlayerDamage", root, function( attacker ) if getPlayerTeam(source) == getPlayerTeam(attacker) and getElementData(source, "in_mission") and getElementData(attacker, "in_mission") then cancelEvent( ) end end ) addEventHandler("onPlayerWasted",root, function() setElementData(player,"in_mission",false) outputChatBox("You Filed") end) Link to comment
Ja[B]er[X]Pro Posted February 2, 2016 Author Share Posted February 2, 2016 اقبل سكايب Link to comment
HassoN Posted February 2, 2016 Share Posted February 2, 2016 source خليه playerسطر 13 و 24 و43 غير ال Link to comment
Ja[B]er[X]Pro Posted February 2, 2016 Author Share Posted February 2, 2016 source خليه playerسطر 13 و 24 و43 غير ال تم شكراً + اقبل سكايب Link to comment
HassoN Posted February 2, 2016 Share Posted February 2, 2016 source خليه playerسطر 13 و 24 و43 غير ال تم شكراً + اقبل سكايب العفو واجبي ، بس ماوصل شي على السكايب .. تأكد من الاسم مرة ثانية hassan.saad2000 Link to comment
Ja[B]er[X]Pro Posted February 2, 2016 Author Share Posted February 2, 2016 source خليه playerسطر 13 و 24 و43 غير ال تم شكراً + اقبل سكايب العفو واجبي ، بس ماوصل شي على السكايب .. تأكد من الاسم مرة ثانية hassan.saad2000 ارسلت لك دا اسمك صح؟ hassan saad ايميلي سكايب [email protected] Link to comment
' A F . Posted February 2, 2016 Share Posted February 2, 2016 أستخدم https://wiki.multitheftauto.com/wiki/setElementModel أفضل من https://wiki.multitheftauto.com/wiki/setPlayerSkin 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