TD[M]ER Posted November 25, 2012 Share Posted November 25, 2012 السلام عليكم ورحمةة الله وبركاتهه ابي اسوي ماركر الله يسلمكم وابي الماركر ذا لمن يجيه اللاعب بـ السيارهـ]! تنفتح له نافذهـ من غير ما ينزل من السيارةة وشكـ ـرا :] مقدما وتعبتكم معآي Link to comment
3NAD Posted November 25, 2012 Share Posted November 25, 2012 ترى الأكواد جاهزة انت اللي عليك تركبها فوق بعض وانتهى الموضوع 1- createMarker 2- isPedInVehicle 3- guiSetVisible 4- Event "onClientMarkerHit" Link to comment
TD[M]ER Posted November 25, 2012 Author Share Posted November 25, 2012 ترى الأكواد جاهزة انت اللي عليك تركبها فوق بعض وانتهى الموضوع 1- createMarker 2- isPedInVehicle 3- guiSetVisible 4- Event "onClientMarkerHit" تسلم يالغالي وجاري التجربهه واذا صار شي كلمتكم :] تعبتكـ يالغلا Link to comment
==>ҭᾄlᾄl Posted November 25, 2012 Share Posted November 25, 2012 marker = createMarker(...) function showGUI () if source == marker and isPedInVehicle(localPlayer) then guiSetVisible (win,true) showCursor (true) end end addEventHandler ("onClientMarkerHit",getRootElement(),showGUI) لم تتم التجربه Link to comment
Tete omar Posted November 25, 2012 Share Posted November 25, 2012 Marker = createMarker( .. ) function onHit(Element) if(getElementType(Element)=='player')then if(Element==localPlayer)then if not(isPedInVehicle(Element)then guiSetVisible(gui_element,true) showCursor(true) end end end end addEventHandler("onClientMarkerHit",Marker,onHit) Link to comment
==>ҭᾄlᾄl Posted November 25, 2012 Share Posted November 25, 2012 Marker = createMarker( .. ) function onHit(Element) if(getElementType(Element)=='player')then if(Element==localPlayer)then if not(isPedInVehicle(Element)then guiSetVisible(gui_element,true) showCursor(true) end end end end addEventHandler("onClientMarkerHit",Marker,onHit) هو يبغاه اذا كان راكب السياره Link to comment
TD[M]ER Posted November 25, 2012 Author Share Posted November 25, 2012 تسلمون والله ماقصرتم اقسم باللهه كلكم يعطيكم الف الللللللف عافيه تيتي وعناد وطلال لبى قلبكم بس Link to comment
==>ҭᾄlᾄl Posted November 25, 2012 Share Posted November 25, 2012 الله يعافيك اي سؤال ثاني حاضر Link to comment
TD[M]ER Posted November 25, 2012 Author Share Posted November 25, 2012 server.lua:21:,>, expected tear "then" Link to comment
TD[M]ER Posted November 25, 2012 Author Share Posted November 25, 2012 Marker = createMarker(2129.2849121094,955.36529541016,10.90837097168,'cylinder',5,255,255,0,0) function onHit(Element) if(getElementType(Element)=='player')then if(Element==localPlayer)then if (isPedInVehicle(Element)then guiSetVisible(gui_element,true) showCursor(true) end end end end addEventHandler("onClientMarkerHit",Marker,onHit) طبعا هذا الكود اللي فيه الحطا الاكواد الثانية شلتها :] Link to comment
кιηg-αвα∂у Posted November 25, 2012 Share Posted November 25, 2012 كلنت addEvent("onShow",true) addEventHandler("onShow",root, function() guiSetVisible(اسم النافذة,true) showCursor(true) end) سيرفر local mark = createMarker (x,y,z, "cylinder", 2.5, 0, 255, 0, 255 ) addEventHandler("onMarkerHit",root, function (plr) if source == mark then triggerClientEvent(plr,"onShow",plr) end end ) ملاحضة البوابة تفتح لو كنت بسيارة او بدون Link to comment
TAPL Posted November 25, 2012 Share Posted November 25, 2012 -- Client Side -- Marker = createMarker(2129.3, 955.4, 10.9, "cylinder", 5, 255, 255, 0, 0) function onHit(player) if getElementType(player) == "player" and player == localPlayer then if isPedInVehicle(player) then guiSetVisible(gui_element, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", Marker, onHit) Link to comment
TD[M]ER Posted November 26, 2012 Author Share Posted November 26, 2012 -- Client Side -- Marker = createMarker(2129.3, 955.4, 10.9, "cylinder", 5, 255, 255, 0, 0) function onHit(player) if getElementType(player) == "player" and player == localPlayer then if isPedInVehicle(player) then guiSetVisible(gui_element, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", Marker, onHit) كلنت انا كنت حاطهه سيرفر .. صبر اجربهه Link to comment
TD[M]ER Posted November 26, 2012 Author Share Posted November 26, 2012 -- Client Side -- Marker = createMarker(2129.3, 955.4, 10.9, "cylinder", 5, 255, 255, 0, 0) function onHit(player) if getElementType(player) == "player" and player == localPlayer then if isPedInVehicle(player) then guiSetVisible(gui_element, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", Marker, onHit) كفوو واللهه تابل ... ظبط 100% وساعدني فيهه مجنون فيكـ يعطيكم العااافيييههه 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