khaledmhammed Posted August 9, 2015 Share Posted August 9, 2015 (edited) ذا نظام سيف زون (محميه لاكن فيه كم خطا ) اعتقد ان يوم يوقف اي لاعب فيه يجي لكل الاعبين لو احد عنده حلياريت تفيدوني local screenW, screenH = guiGetScreenSize() function zoneText() dxDrawText("Safe Zone", screenW * 0.896, screenH * 0.935, screenW * 0.970, screenH * 0.963, tocolor(53, 0, 0, 255), 1.30, "default-bold", "right", "top", true, true, false, true, false) end zoneLS = createColRectangle(1150.05579, -1390.17407,100,100) zoneLV = createColRectangle(1577.66418, 1723.38440,65,150) zoneSF = createColRectangle(-2740.70898, 578.36127,144,120) function PlayerD() cancelEvent () end function hit(element) if source == zoneLS or source == zoneLV or source == zoneSF then if (getElementType (element) == "player") then addEventHandler("onClientRender", root,zoneText) addEventHandler ("onClientPlayerDamage",getRootElement(),PlayerD) toggleControl ("next_weapon",false) toggleControl ("previous_weapon",false) toggleControl ("fire",false) setPlayerWeaponSlot (element,0) end end end function Leave() if source == zoneLS or source == zoneLV or source == zoneSF then removeEventHandler("onClientRender", root,zoneText) removeEventHandler ("onClientPlayerDamage",getRootElement(),PlayerD) toggleControl ("next_weapon",true) toggleControl ("previous_weapon",true) toggleControl ("fire",true) end end addEventHandler ("onClientColShapeLeave",root,Leave) addEventHandler ("onClientColShapeHit",root,hit) ذا كلانيت ياليت تشوفولي حل Edited August 9, 2015 by Guest Link to comment
khaledmhammed Posted August 9, 2015 Author Share Posted August 9, 2015 أطرح جانب سيرفر مافي سيرفر ذا بس كذا كلانيت Link to comment
StarBoy Posted August 9, 2015 Share Posted August 9, 2015 أطرح جانب سيرفر مافي سيرفر ذا بس كذا كلانيت وش السكايب حقك افهمك وش راح تعمل عشان تحل المشكله Link to comment
StarBoy Posted August 9, 2015 Share Posted August 9, 2015 أطرح جانب سيرفر مافي سيرفر ذا بس كذا كلانيت اقبل سكايب اعمك وش تعمل Link to comment
iMr.SFA7 Posted August 9, 2015 Share Posted August 9, 2015 جبت لك واحد جديد حطه في ملف سيرفر وبدل الاحداثيات local SafeZone3 = createColRectangle ( x, y, w, h)-- بدل الاحداثيات هنا --[[ x = الاحداثي x y = الاحداثي y w = الطول h = العرض --]] function SafeZoneA(thePlayer) if isElement( thePlayer ) and getElementType ( thePlayer ) == "player" then if (isElementWithinColShape(thePlayer, SafeZone3)) then toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) toggleControl ( thePlayer, "aim_weapon", false ) end end end addEventHandler ( "onColShapeHit", getRootElement(), SafeZoneA ) addEventHandler( "onPlayerJoin", SafeZone3, SafeZoneA ) function LeaveA ( thePlayer ) if isElement( thePlayer ) and getElementType ( thePlayer ) == "player" then if (not isElementWithinColShape(thePlayer, SafeZone3)) then toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) end end end addEventHandler ( "onColShapeLeave", SafeZone3, LeaveA ) Link to comment
#CroSs Posted August 9, 2015 Share Posted August 9, 2015 جبت لك واحد جديدحطه في ملف سيرفر وبدل الاحداثيات local SafeZone3 = createColRectangle ( x, y, w, h)-- بدل الاحداثيات هنا --[[ x = الاحداثي x y = الاحداثي y w = الطول h = العرض --]] function SafeZoneA(thePlayer) if isElement( thePlayer ) and getElementType ( thePlayer ) == "player" then if (isElementWithinColShape(thePlayer, SafeZone3)) then toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) toggleControl ( thePlayer, "aim_weapon", false ) end end end addEventHandler ( "onColShapeHit", getRootElement(), SafeZoneA ) addEventHandler( "onPlayerJoin", SafeZone3, SafeZoneA ) function LeaveA ( thePlayer ) if isElement( thePlayer ) and getElementType ( thePlayer ) == "player" then if (not isElementWithinColShape(thePlayer, SafeZone3)) then toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) end end end addEventHandler ( "onColShapeLeave", SafeZone3, LeaveA ) : ما يحتاج واحد جديد ولا خرابيط ، كل مافي السالفة أن if ( element == localPlayer ) then ^ Link to comment
khaledmhammed Posted August 9, 2015 Author Share Posted August 9, 2015 مشكووور سفاح والله مادري وش اسوي لاهنت ضمني اسكايب kokomemo17 Link to comment
iMr.SFA7 Posted August 9, 2015 Share Posted August 9, 2015 مشكووور سفاح والله مادري وش اسوي لاهنت ضمني اسكايب kokomemo17 أنا اساعد من الجوال مافتحت اللاب من فترة بس عموما ضيفني لافتحته بقبل iimr.sfa7 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