Jump to content

طلب كود الانتقال


Recommended Posts

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

انا سويت لوحة واذا ضغت على الزر يوديه المكان عطوني الكود

وانا بسوي الاماكن

الاماكن 3

البدايه

والدائري

والنخيل

Link to comment

باحداثيات المكان الي تبيه x, y, z بدل

addEventHandler ( "onClientGUIClick", resourceRoot, 
function (    ) 
    if ( source == اسم الزر ) then 
        setElementPosition ( localPlayer, x, y, z ) 
    elseif ( source == اسم الزر ) then -- كرر نفس الحركه هذي على حسب الازرار الي عنددك 
        setElementPosition ( localPlayer, x, y, z ) 
    elseif ( source == اسم الزر ) then 
        setElementPosition ( localPlayer, x, y, z ) 
    end 
end ) 
Link to comment

ماظبط

اللوحة ماتفتح

الكود

local key = "F6" 
GUIEditor = { 
    button = {}, 
    label = {}, 
    window = {}, 
} 
GUIEditor.window[1] = guiCreateWindow(260, 103, 272, 399, "لوحة الانتقالات - اساطير العرب", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.button[1] = guiCreateButton(9, 19, 254, 48, "البداية", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEEF703") 
GUIEditor.button[2] = guiCreateButton(9, 72, 254, 44, "الدائري", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF02F708") 
GUIEditor.button[3] = guiCreateButton(9, 122, 254, 44, "النخيل", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00F8D8") 
GUIEditor.label[1] = guiCreateLabel(19, 231, 253, 117, "Created By Iphone", false, GUIEditor.window[1]) 
guiSetAlpha(GUIEditor.label[1], 0.72) 
guiSetFont(GUIEditor.label[1], "default-bold-small") 
guiLabelSetColor(GUIEditor.label[1], 251, 0, 0) 
  
GUIEditor.label[2] = guiCreateLabel(226, 59, 146, 50, "", false, GUIEditor.label[1]) 
  
  
GUIEditor.label[3] = guiCreateLabel(272, 420, 243, 64, "آســـــــآطـــيــر العــــرب", false) 
guiSetFont(GUIEditor.label[3], "sa-gothic") 
    guiSetVisible (GUIEditor.window[1], false) 
    bindKey( key, "down",function() 
    guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) ) 
    showCursor ( guiGetVisible (GUIEditor.window[1]) ) 
    end) 
    addEventHandler ( "onClientGUIClick", resourceRoot, 
    function (    ) 
        if ( source == البداية ) then 
            setElementPosition ( localPlayer, 835.17175 -2504.28247 12.90000) 
        elseif ( source == الدائري) then 
            setElementPosition ( localPlayer, 1830.37634 878.64307 10.73318) 
        elseif ( source == النخيل ) then 
            setElementPosition ( localPlayer, 2037.05457 1282.71777 10.82031)  
        end 
    end ) 

Link to comment

تفضل

GUIEditor = { button = {}, label = {}, window = {}, } 
  
addEventHandler ( "onClientResourceStart", resourceRoot, function (    ) 
    GUIEditor.window[1] = guiCreateWindow(260, 103, 272, 399, "لوحة الانتقالات - اساطير العرب", false) 
    guiSetVisible (GUIEditor.window[1], false) 
    guiWindowSetSizable(GUIEditor.window[1], false) 
  
    GUIEditor.button[1] = guiCreateButton(9, 19, 254, 48, "البداية", false, GUIEditor.window[1]) 
    guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEEF703") 
    GUIEditor.button[2] = guiCreateButton(9, 72, 254, 44, "الدائري", false, GUIEditor.window[1]) 
    guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF02F708") 
    GUIEditor.button[3] = guiCreateButton(9, 122, 254, 44, "النخيل", false, GUIEditor.window[1]) 
    guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00F8D8") 
    GUIEditor.label[1] = guiCreateLabel(19, 231, 253, 117, "Created By Iphone", false, GUIEditor.window[1]) 
    guiSetAlpha(GUIEditor.label[1], 0.72) 
    guiSetFont(GUIEditor.label[1], "default-bold-small") 
    guiLabelSetColor(GUIEditor.label[1], 251, 0, 0) 
    GUIEditor.label[2] = guiCreateLabel(226, 59, 146, 50, "", false, GUIEditor.label[1]) 
    GUIEditor.label[3] = guiCreateLabel(272, 420, 243, 64, "آســـــــآطـــيــر العــــرب", false) 
    guiSetFont(GUIEditor.label[3], "sa-gothic") 
end ) 
  
bindKey( "F6", "down", function (    ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
end ) 
     
addEventHandler ( "onClientGUIClick", resourceRoot, 
function (    ) 
    if ( source == GUIEditor.button[1] ) then 
        setElementPosition ( localPlayer, 835.17175, -2504.28247, 12.90000 ) 
    elseif ( source == GUIEditor.button[2] ) then 
        setElementPosition ( localPlayer, 1830.37634, 878.64307, 10.73318 ) 
    elseif ( source == GUIEditor.button[3] ) then 
        setElementPosition ( localPlayer, 2037.05457, 1282.71777, 10.82031 ) 
    end 
end ) 
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...