Jump to content

فتح نافذهـ في الماركر


TD[M]ER

Recommended Posts

السلام عليكم ورحمةة الله وبركاتهه

ابي اسوي ماركر الله يسلمكم وابي الماركر ذا لمن يجيه اللاعب بـ السيارهـ]! تنفتح له نافذهـ من غير ما ينزل من السيارةة

وشكـ ـرا :] مقدما وتعبتكم معآي

Link to comment
ترى الأكواد جاهزة انت اللي عليك تركبها فوق بعض وانتهى الموضوع
  
1- createMarker 
2- isPedInVehicle 
3- guiSetVisible 
4- Event "onClientMarkerHit" 
  

تسلم يالغالي وجاري التجربهه واذا صار شي كلمتكم :]

تعبتكـ يالغلا :D

Link to comment
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
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
  
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

كلنت

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

-- 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
-- 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) 

كلنت :shock:

انا كنت حاطهه سيرفر .. صبر اجربهه

Link to comment
-- 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...