Jump to content

طلب كود بسيط ^^


RLP[Farouk]

Recommended Posts

السلام عليكم

اريد كود الادمن الوحيد يستطيع استخدام قائمة معينه

:roll:

ولدي مشكلة بهذه

تظهر القائمة تلقئياً عند دخول السيرفر

        GUIEditor_Label = {} 
        GUIEditor_Edit = {} 
  
        GUIEditor_Window[1] = guiCreateWindow(0.3275,0.3383,0.48,0.4717,"Blip panel",true) 
        x1 = guiCreateEdit(0.3021,0.1378,0.3698,0.106,"",true,GUIEditor_Window[1]) 
        GUIEditor_Label[1] = guiCreateLabel(0.4661,0.0707,0.224,0.0636,"X",true,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[1],255,255,255) 
guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") 
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) 
        y1 = guiCreateEdit(0.3021,0.2968,0.3698,0.106,"",true,GUIEditor_Window[1]) 
        y2 = guiCreateLabel(0.4609,0.2473,0.25,0.053,"Y",true,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],255,255,255) 
guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") 
guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) 
        z1 = guiCreateEdit(0.3021,0.4558,0.3724,0.1095,"",true,GUIEditor_Window[1]) 
        z2 = guiCreateLabel(0.4609,0.3958,0.2214,0.053,"Z",true,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,255,255) 
guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") 
guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) 
        id = guiCreateEdit(0.3021,0.6325,0.3672,0.1095,"",true,GUIEditor_Window[1]) 
        GUIEditor_Label[4] = guiCreateLabel(0.3906,0.5689,0.2266,0.0671,"blip number",true,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[4],255,255,255) 
guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") 
guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) 
        GUIEditor_Button[1] = guiCreateButton(0.6198,0.7774,0.2786,0.1272,"Get Position",true,GUIEditor_Window[1]) 
        GUIEditor_Button[2] = guiCreateButton(0.1094,0.7774,0.2813,0.1272,"create blip",true,GUIEditor_Window[1]) 
    function onGuiClick (button, state, absoluteX, absoluteY) 
    if (source == GUIEditor_Button[1]) then 
    local x,y,z = getElementPosition (getLocalPlayer()) 
   guiSetText (x1, x ) 
   guiSetText (y1, y ) 
   guiSetText (z1, z ) 
        end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
    function onGuiClick (button, state, absoluteX, absoluteY) 
    if (source == GUIEditor_Button[2]) then 
            local x = guiGetText( x1 ) 
            local y = guiGetText( y1 ) 
            local z = guiGetText( z1 ) 
            local id = guiGetText( id ) 
             
            createBlip( x, y, z, id) 
             
        end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function blip() 
if guiGetVisible ( GUIEditor_Window[1] ) then 
  
                guiSetVisible ( GUIEditor_Window[1], false ) 
                showCursor(false) 
        else 
  
                guiSetVisible ( GUIEditor_Window[1], true ) 
                showCursor(true) 
        end 
end 
addCommandHandler ( "blip", blip ) 
  

Link to comment

المشكلة بالكود الثاني

هي الزر

تفضل كود جاهز بس غير الزر المطلوب

+

إذا تبي صوت إذا يفتح

bindKey ( "F2" , "down" , function() 
if ( guiGetVisible ( shopWindow ) == true ) then 
 guiSetVisible ( shopWindow ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
 elseif ( guiGetVisible ( shopWindow ) == false ) then 
 guiSetVisible ( shopWindow ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
 playSound("open.mp3") 
 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...