Randomnob Posted August 27, 2013 Share Posted August 27, 2013 local marker60 = createMarker (2827.3000488281,1367.5,10,"cylinder",3,252,249,2,25) function fixcar ( thePlayer ) if getElementType ( thePlayer ) == 'player' and isPedInVehicle ( thePLayer ) then if getElementData ( thePlayer,'Group' ) == '[GHOST]' then fixVehicle ( getPedOccupiedVehicle( thePlayer ) ) outputChatBox("fixed",thePlayer,255,255,255,true) else outputChatBox("#00ff00GHOST ONLY",thePlayer,255,255,255,true) end end end addEventHandler("onMarkerHit",marker60,fixcar) المفروض انه يصلح السيارة بس ما يصلحها :@ Link to comment
3NAD Posted August 27, 2013 Share Posted August 27, 2013 تأكد ان الكود بجانب سيرفر local marker60 = createMarker (2827.3000488281,1367.5,10,"cylinder",3,252,249,2,25) function fixcar ( thePlayer ) if getElementType ( thePlayer ) == "player" then if isPedInVehicle ( thePlayer ) then local group = getElementData ( thePlayer, "Group" ) if group then if group == "[GHOST]" then fixVehicle ( getPedOccupiedVehicle ( thePlayer ) ) outputChatBox("fixed",thePlayer,255,255,255,true) else outputChatBox("#00ff00GHOST ONLY",thePlayer,255,255,255,true) end end end end end addEventHandler("onMarkerHit",marker60,fixcar,false) Link to comment
Randomnob Posted August 27, 2013 Author Share Posted August 27, 2013 تأكد ان الكود بجانب سيرفر local marker60 = createMarker (2827.3000488281,1367.5,10,"cylinder",3,252,249,2,25) function fixcar ( thePlayer ) if getElementType ( thePlayer ) == "player" then if isPedInVehicle ( thePlayer ) then local group = getElementData ( thePlayer, "Group" ) if group then if group == "[GHOST]" then fixVehicle ( getPedOccupiedVehicle ( thePlayer ) ) outputChatBox("fixed",thePlayer,255,255,255,true) else outputChatBox("#00ff00GHOST ONLY",thePlayer,255,255,255,true) end end end end end addEventHandler("onMarkerHit",marker60,fixcar,false) ووولاكم عناد جاري التجربة Link to comment
Randomnob Posted August 27, 2013 Author Share Posted August 27, 2013 اشتغل بتقل عليك بسؤال تاني ممكن؟ طلب كود لاني ما عرفت اعمله :@ Link to comment
Randomnob Posted August 27, 2013 Author Share Posted August 27, 2013 .. تفضل كود لمنطقة بس يدخلها اعضاء عصابتي يقدرو يقتلو بعض يعني ساحة تدريب :] مثلا ماركر انا اكبره او اذا داخل انتريور :] Link to comment
3NAD Posted August 27, 2013 Share Posted August 27, 2013 createColCuboid "onColShapeHit" if group ~= "...." then killPed ( ... ) end Link to comment
Randomnob Posted August 27, 2013 Author Share Posted August 27, 2013 createColCuboid "onColShapeHit" if group ~= "...." then killPed ( ... ) end انا المشكلة اني حتى ما عرفت ابدا فيه يعني لو تعرف واحد جاهز مع الاسف باخد شي جاهز :@ تكون مشكور Link to comment
3NAD Posted August 27, 2013 Share Posted August 27, 2013 تبشر بالجاهز بس ضبط الإحداثيات -- Server Side local ColShape = createColCuboid ( 0, 0, 0, 30, 30, 10 ) local group = "[GHOST]" addEventHandler ( "onColShapeHit", root, function ( player ) if getElementType ( player ) == "player" then local plrGroup = getElementData ( player, "Group" ) if plrGroup then if plrGroup ~= group then killPed ( player ) outputChatBox ( "* Private For "..group..".", player, 255, 255, 0, true ) end else killPed ( player ) end end end ) Link to comment
Randomnob Posted August 27, 2013 Author Share Posted August 27, 2013 تبشر بالجاهزبس ضبط الإحداثيات -- Server Side local ColShape = createColCuboid ( 0, 0, 0, 30, 30, 10 ) local group = "[GHOST]" addEventHandler ( "onColShapeHit", root, function ( player ) if getElementType ( player ) == "player" then local plrGroup = getElementData ( player, "Group" ) if plrGroup then if plrGroup ~= group then killPed ( player ) outputChatBox ( "* Private For "..group..".", player, 255, 255, 0, true ) end else killPed ( player ) end end end ) وؤوؤبي كفوو X كفووو Link to comment
Randomnob Posted August 27, 2013 Author Share Posted August 27, 2013 تبشر بالجاهزبس ضبط الإحداثيات -- Server Side local ColShape = createColCuboid ( 0, 0, 0, 30, 30, 10 ) local group = "[GHOST]" addEventHandler ( "onColShapeHit", root, function ( player ) if getElementType ( player ) == "player" then local plrGroup = getElementData ( player, "Group" ) if plrGroup then if plrGroup ~= group then killPed ( player ) outputChatBox ( "* Private For "..group..".", player, 255, 255, 0, true ) end else killPed ( player ) end end end ) وؤوؤبي كفوو X كفووو لا انا كنت بقصد ساحة تدريب يعني اعضاء العصابة يقدرون يقتلون بعض Link to comment
iPrestege Posted August 27, 2013 Share Posted August 27, 2013 سوي ماركر بـ الساحة وسوي onClientPlayerDamage وشرط انة كان الاعب بـ المـاركــر : isElementWithinMarker يسوي : cancelEvent Link to comment
3NAD Posted August 27, 2013 Share Posted August 27, 2013 لا انا كنت بقصد ساحة تدريب يعني اعضاء العصابة يقدرون يقتلون بعض يعني السيرفر اللي انت فيه مخلي اعضاء القروب مايتقاتلن ؟ Link to comment
iMr.Dawix~# Posted August 27, 2013 Share Posted August 27, 2013 الفكره هي انه اول ما يدخل اللاعب الماركر يطلعه من القروب عشان يتقاتلون واذا طلع من الماركر يقدر يضغط اف6 هذا الي تحتاجه onMarkerHit onMarkerLeave createMarker getElementData setElementData Link to comment
Randomnob Posted August 28, 2013 Author Share Posted August 28, 2013 لا انا كنت بقصد ساحة تدريب يعني اعضاء العصابة يقدرون يقتلون بعض يعني السيرفر اللي انت فيه مخلي اعضاء القروب مايتقاتلن ؟ السيرفر فيه نظام قروبات العقرب ما يقدرو يقتلو بعضهم العصابة انا بعمل ساحة تدريب بس يدخلوها يقدرو يقتلون بعض شفت كتير مثلها بلسيرفر وحبيت اعمل مثلها قلت بسال اذا تعرفو الكود :] Link to comment
S4MuEL Posted August 28, 2013 Share Posted August 28, 2013 سآحة آلتدريب كيف بتكون آنتريور ولآ بـ آلعآلم آلأصلي ومسوي منطقة محددة آو شي كذآ ؟! + تحتآج removeElementData Link to comment
3NAD Posted August 28, 2013 Share Posted August 28, 2013 جرب كذا -- Server Side local ColShape = createColCuboid ( 0, 0, 0, 30, 30, 10 ) local group = "[GHOST]" addEventHandler ( "onColShapeHit", ColShape, function ( player ) if getElementType ( player ) == "player" then local plrGroup = getElementData ( player, "Group" ) if plrGroup then if plrGroup ~= group then killPed ( player ) outputChatBox ( "* Private For "..group..".", player, 255, 255, 0, true ) else setElementData ( player, "GroupWar", plrGroup ) setElementData ( player, "Group", nil ) end else killPed ( player ) end end end , false ) addEventHandler ( "onColShapeLeave", ColShape, function ( player ) if getElementType ( player ) == "player" then local plrGroup = getElementData ( player, "GroupWar" ) if plrGroup then setElementData ( player, "Group", plrGroup ) setElementData ( player, "GroupWar", nil ) end end end , false ) addEventHandler ( "onPlayerQuit", root, function ( ) local plrGroup = getElementData ( source, "GroupWar" ) if plrGroup then setElementData ( source, "Group", plrGroup ) 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