Jump to content

مطلوب كود


Dr.Xen

Recommended Posts

Posted

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

ابي كود لو شغلت المود ما تفتح اللوحة علية

يعني لأزم اروح ماركر وادخل الماركر وتفتح ...

وشكرآ لكم

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Posted

لأزم تلمس ماركر وتفتح شف وش سويت

GUIEditor = { 
    button = {}, 
    window = {}, 
    staticimage = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(194, 129, 398, 314, "Police Center Control !", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF2F4CFA") 
  
        GUIEditor.button[1] = guiCreateButton(10, 178, 115, 37, "Police Center", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "CC2650D7") 
        GUIEditor.button[2] = guiCreateButton(10, 235, 115, 37, "Parking Cars Police Center", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "CC72E813") 
        GUIEditor.button[3] = guiCreateButton(273, 235, 115, 37, "Prison Control", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "CCF0C80A") 
        GUIEditor.button[4] = guiCreateButton(273, 178, 115, 37, "Surface Police Center", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "CC16DEE6") 
        GUIEditor.staticimage[1] = guiCreateStaticImage(121, 20, 152, 152, "cinet.png", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(286, 283, 102, 21, "Close", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "CCF23907")     
    end 
) 
            guiSetVisible (GUIEditor.window[1], false) 
        addEventHandler ("onClientMarkerHit", createMarker(214.72594,1906.00842,17.64063,"cylinder",2,255,0,0,255), 
    function ( hitPlayer ) 
        local mm = getPlayerTeam ( hitPlayer ) 
            if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then 
                guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) 
            end 
        end 
    ) 
     
     
  

Posted
GUIEditor = { 
    button = {}, 
    window = {}, 
    staticimage = {} 
} 
        GUIEditor.window[1] = guiCreateWindow(194, 129, 398, 314, "Police Center Control !", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF2F4CFA") 
        GUIEditor.button[1] = guiCreateButton(10, 178, 115, 37, "Police Center", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "CC2650D7") 
        GUIEditor.button[2] = guiCreateButton(10, 235, 115, 37, "Parking Cars Police Center", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "CC72E813") 
        GUIEditor.button[3] = guiCreateButton(273, 235, 115, 37, "Prison Control", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "CCF0C80A") 
        GUIEditor.button[4] = guiCreateButton(273, 178, 115, 37, "Surface Police Center", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "CC16DEE6") 
        GUIEditor.staticimage[1] = guiCreateStaticImage(121, 20, 152, 152, "cinet.png", false, GUIEditor.window[1]) 
        GUIEditor.button[5] = guiCreateButton(286, 283, 102, 21, "Close", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "CCF23907")     
guiSetVisible (GUIEditor.window[1], false) 
createMarker(214.72594,1906.00842,17.64063,"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 
) 

Posted
كفو عدلت ؟

اول ما اشغل المود على طول تفتح اللوحة على وجهي !

Mr.T9

جرب الكود الحين

عدلت ردي

Posted

اوك كفو ومشكور ,,

+

ابي لو ضطغت زر يغير مكان الكامير وتختفي الماؤوس ومااقدر احرك ولو كتبت كلمة ترجع الكاميرآ زي ما كانت

+

كيف اجيب إحداثيات الكاميرأآ؟!!

Posted
اوك كفو ومشكور ,,

+

ابي لو ضطغت زر يغير مكان الكامير وتختفي الماؤوس ومااقدر احرك ولو كتبت كلمة ترجع الكاميرآ زي ما كانت

+

كيف اجيب إحداثيات الكاميرأآ؟!!

الكاميرا استخدم

setCameraMatrix 

تختفي الماوس

showCursor 

Posted (edited)

مثال للكاميرا

setCameraMatrix(source,x,y,z,x,y,z) 

مثال بسيط + عليك الاحداثيات بس لما تجيب احداثيات الكاميرا من فوق فيها صعوبه شوي

Edited by Guest
Posted (edited)

يعني اوول ما تضغط الزر تغير للكاميرآ+

كيف اجيب الإحداثيات ؟

Edited by Guest
Posted (edited)

يعني انا في أي سيرفر او سيرفري المحلي اكتب الكلمة واروح الصق بتجي صح؟!

Edited by Guest
Posted

دخلت ماب ادتر وكتبت في اف 8

GetCameraPos

وجيت في نوتباد ولصقت Ctrl+v

ما جت إحداثيات جججات

GetCameraPos !

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