ايهاب Posted August 3, 2015 Share Posted August 3, 2015 سلام عليكم دة سكريبت محد مناطق عايزهم انا يكون فيهم منطقة حماية المود بيشتغل وكل شى لكن اكنى مش عامل شى اماكن الحماية الى حددتها زى ما هيا ولا حتى لون الارض متغير هو بمعنى اوضح انا معدل على الاسكريبت فى تغير احداث الاماكن الى انا عملة دة صح ؟ safezone local screenW, screenH = guiGetScreenSize() function zoneText() dxDrawRectangle(695, 561, 91, 20, tocolor(247, 255, 245, 62), 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) zoneColorLS = createRadarArea (1150.05579, -1390.17407,100,100,000000, 000020, 000040) zoneColorLV = createRadarArea (1577.66418, 1723.38440,65,150,020,115,002) zoneColorSF = createRadarArea (-2740.70898, 578.36127,144,120,254,200,254) function PlayerD() cancelEvent () end function hit(element) if source == zoneLS or source == zoneLV or source == zoneSF then if (getElementType (element) == "vehicle") then elseif (getElementType (element) == "player") then outputChatBox ("welcome to safe zone",201,440,000,true) 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 outputChatBox ("you leave",245,560,660,true) 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)[youtube][/youtube] Link to comment
iMr.SFA7 Posted August 3, 2015 Share Posted August 3, 2015 وضح ما فهمت شيء ؟؟ !! بأخر سطر ليه حاط [youtube][/youtube] -- ؟؟ ووش تبي تسوي بالدي أكس ؟ 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