Jump to content

طلب كود : لما تدخل الماركر تجي اللوحة


Recommended Posts

سلام عليكم

يا شباب بغيت كود الماركر

مكان bindkey

يعني يدخل الماركر يدخل المود و شكرا

اخوي تراك لحستني ههه

تبي ب Bindkey

او ماركر؟

يعني تبي اللوحه تفتح بزر او اذا خشيت الماركر؟

Link to comment
    marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) 
      
    addEventHandler("onClientMarkerHit",marker, 
      function (player) 
        if (getElementType (player) == "player") and (player == localPlayer)  then 
        showCursor(true) 
        guiSetVisible(النافذه,true) 
             end 
        end 
    ) 

Link to comment

مثال :

local marker = createMarker(...) -- الماركر 
  
function onHit(hitElement) -- وظيفة حدث الداخل الى الماركر 
    if hitElement == localPlayer then -- اذا الداخل لاعب 
        bindKey("المفتاح", "down", showWind) -- يحط متاح فتح الوندو او قفلها 
    end 
end 
addEventHandler("onClientMarkerHit", marker, onHit) -- الحدث 
  
function onLeave(leaveElement) -- وظيفة حدث الخارج من الماركر 
    if leaveElement == localPlayer then -- اذا الخارج لاعب 
        unbindKey("المفتاح", "down", showWind) -- يشيل مفتاح فتح الوندو او قفلها 
   end 
end 
addEventHandler("onClientMarkerLeave", marker, onLeave) -- الحدث 
  
function showWind() -- وظيفة فتح النافذة او قفلها 
    guiSetVisible(النافذة, not guiGetVisible(النافذة)) 
    showCursor( not isCursorShowing()) 
end 

Link to comment
    marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) 
      
    addEventHandler("onClientMarkerHit",marker, 
      function (player) 
        if (getElementType (player) == "player") and (player == localPlayer)  then 
        showCursor(true) 
        guiSetVisible(النافذه,true) 
             end 
        end 
    ) 

جرب الكود ذا حط اسم الناافذه واحداثيات الماركر

وراح يفتح لك اللوحه اول ما تدخل الماركر 8)

Link to comment
    marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) 
      
    addEventHandler("onClientMarkerHit",marker, 
      function (player) 
        if (getElementType (player) == "player") and (player == localPlayer)  then 
        showCursor(true) 
        guiSetVisible(النافذه,true) 
             end 
        end 
    ) 

جرب الكود ذا حط اسم الناافذه واحداثيات الماركر

وراح يفتح لك اللوحه اول ما تدخل الماركر 8)

سلام عليكم

يا شباب بغيت كود الماركر

مكان bindkey

يعني يدخل الماركر يدخل المود و شكرا

Link to comment
   
  yazan = createMarker ( x, y, z, "cylinder", 2, 255, 0, 0, 170 ) 
ss = guiCreateGridList (149,62,486,448,false) 
 guiSetVisible ( ss, false ) 
      
    addEventHandler("onClientMarkerHit",yazan, 
      function ( hitElement ) 
        if ( guiGetVisible ( ss ) == false ) and ( getElementType ( hitElement ) == "player" ) then 
            guiSetVisible ( ss , true ) 
            showCursor ( true ) 
        end 
    end 
) 

Edited by Guest
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...