Jump to content

مطلوب كود


Dr.Xen

Recommended Posts

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

آهـآ مشكور اخوي ،،آخر طلب الي هوآ

ابي اضيف اكثر من بوتون + إحداثيات

+

لو دخلت أي ماركر يفتح لي اللوحة مدري ليش !!

وضح طلبكـ ، تقصد يعني تبي تسوي أكثر من زر يسوي نفس الوظيفة بس يغير احداثيات الكاميرا؟

. اطرح الكود حق الماركر مع كود إنشاء الماركر +

Link to comment

يب ..

    createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) 
    addEventHandler ("onClientMarkerHit",root, 
        function ( hitPlayer ) 
            local mm = getPlayerTeam ( hitPlayer ) 
                if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then 
                    guiSetVisible (GUIEditor.window[1], true) 
                    showCursor (true) 
                end 
            end 
    ) 
     
     
     
  
     
     
        addEventHandler ("onClientGUIClick", root, 
       function () 
               if source == Close then 
                    guiSetVisible ( GUIEditor.window[1], false ) 
                    showCursor ( not isCursorShowing ( ) ) 
              end 
        end 
    ) 
  
     
     
        addEventHandler ( "onClientGUIClick", GUIEditor.button[4], function ( ) 
    setCameraMatrix ( 1560.1276855469, -1670.8175048828, 55.877300262451, 1559.6396484375, -1670.6237792969, 55.026256561279  ) 
    showCursor ( not isCursorShowing ( ) ) 
    guiSetVisible ( GUIEditor.window[1], false )     
    end, false ) 
      
      
      
      
    addCommandHandler ( "Back", function ( ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[0] ) ) 
    showCursor ( not isCursorShowing ( ) ) 
    setCameraTarget ( getLocalPlayer ( ) ) 
    end ) 
     
     
     
        addEventHandler ( "onClientGUIClick", GUIEditor.button[2], function ( ) 
    setCameraMatrix (  1584.1070556641, -1688.6701660156, 7.3071999549866, 1583.6789550781, -1689.5546875, 7.1215643882751   ) 
    showCursor ( not isCursorShowing ( ) ) 
    guiSetVisible ( GUIEditor.window[1], false )     
    end, false ) 
        addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ( ) 
    setCameraMatrix (   1562.4294433594, -1630.6815185547, 562.40600585938, 1562.6004638672, -1631.5120849609, 561.87603759766    ) 
    showCursor ( not isCursorShowing ( ) ) 
    guiSetVisible ( GUIEditor.window[1], false )     
    end, false )   
        addEventHandler ( "onClientGUIClick", GUIEditor.button[1], function ( ) 
    setCameraMatrix ( 1509.0399169922, -1711.6153564453, 88.613998413086, 1509.5380859375, -1711.1164550781, 87.904853820801  ) 
    showCursor ( not isCursorShowing ( ) ) 
    guiSetVisible ( GUIEditor.window[1], false )     
    end, false )     
     

Link to comment

   local ma = createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) 
    addEventHandler ("onClientMarkerHit",ma, 
        function ( hitPlayer ) 
            local mm = getPlayerTeam ( hitPlayer ) 
                if hitPlayer == getLocalPlayer ( ) and mm and getTeamName ( mm ) == "Police" then 
                    guiSetVisible (GUIEditor.window[1], true) 
                    showCursor (true) 
                end 
            end 
    ) 
     

هذا للماركر ,,

الطلب الأول ما فهمتك :lol:

Edited by Guest
Link to comment
   local ma = createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) 
    addEventHandler ("onClientMarkerHit",ma, 
        function ( hitPlayer ) 
            local mm = getPlayerTeam ( hitPlayer ) 
                if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then 
                    guiSetVisible (GUIEditor.window[1], true) 
                    showCursor (true) 
                end 
            end 
    ) 
     

هذا للماركر ,,

الطلب الأول ما فهمتك :lol:

تحقق انة لوكال .

Link to comment
   local ma = createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) 
    addEventHandler ("onClientMarkerHit",ma, 
        function ( hitPlayer ) 
            local mm = getPlayerTeam ( hitPlayer ) 
                if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then 
                    guiSetVisible (GUIEditor.window[1], true) 
                    showCursor (true) 
                end 
            end 
    ) 
     

هذا للماركر ,,

الطلب الأول ما فهمتك

(= كذا النافذة والماوس رح تصير تفتح لكل اللاعبين الي بتيم بوليس

ليه تتحقق من الالمنت الي دخل الماركر إذا كان لاعب وهو الحدث ما يوصله إشارة غير إذا كان الإلمنت الي دخل الماركر هو لاعب؟ +

: عموماً الكود يصير كذا

local theMarker = createMarker ( 1525.90430, -1658.33691, 542, "cylinder", 2, 255, 0, 0, 255 ) 
  
addEventHandler ( "onClientMarkerHit", theMarker, 
    function ( hitPlayer ) 
        local mm = getPlayerTeam ( hitPlayer ) 
        if ( hitPlayer == localPlayer ) and ( mm ) and ( getTeamName ( mm ) == "Police" ) then 
            guiSetVisible ( GUIEditor.window[1], true ) 
            showCursor ( true ) 
        end 
    end 
) 

Link to comment
   local ma = createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) 
    addEventHandler ("onClientMarkerHit",ma, 
        function ( hitPlayer ) 
            local mm = getPlayerTeam ( hitPlayer ) 
                if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then 
                    guiSetVisible (GUIEditor.window[1], true) 
                    showCursor (true) 
                end 
            end 
    ) 
     

هذا للماركر ,,

الطلب الأول ما فهمتك :lol:

تحقق انة لوكال .

تم

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