Jump to content

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


Mbtdaa

Recommended Posts

السلام عليكم

لو سمحتم بغيت كودييين بسييييييطين

انا سويت لوحة تسجيل ودخول واشتغلت تمام

بس ابيها لما الواحد يخش السيرفر تييجي في وجهه هع

ولما يسجل ولا يدخل لحسابه تروح

     
    bindKey("F2", "down", function() 
    guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
    end) 

,

Edited by Guest
Link to comment

جرب هذا

تحت النافذه مباشره

  
guiSetVisible (اسم النافذه, true) 
 showCursor (false ) 
 guiSetInputEnabled(true) 

وأذا ضغط زر تسجيل دخول تختفي جرب هذا

addEventHandler ("onClientGUIClick", getRootElement(), 
  
function(button, state, absoluteX, absoluteY) 
  
if ( source ==  اسم الزر ) then 
guiSetVisible (اسم النافذه, false) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
end 
end) 

واذا مانفع اطرح اكوادك

Edited by Guest
Link to comment

الكود الي لما يسجل تختف النافذه ظبط اما الي اول ماتخش السيرفر ماظبط .!

وبنسبه للكود هاذا هو

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
  
GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) 
GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[1],255,0,0) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],255,0,0) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[4],255,0,0) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
guiSetVisible (GUIEditor_Window[1], true) 
 showCursor (false ) 
 guiSetInputEnabled(true 
  
        function mrsl6an() 
        guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
        showCursor(guiGetVisible(GUIEditor_Window[1])) 
        playSound("mrsl6an.wav", false) 
        end 
        bindKey ("f6", "down", mrsl6an) 
          
addEventHandler ("onClientGUIClick", getRootElement(), 
  
function(button, state, absoluteX, absoluteY) 
  
if ( source ==  GUIEditor_Button[1] ) then 
guiSetVisible (GUIEditor_Window[1], false) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
end 
end) 
  
          
        guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") 
  
          
          
         outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) 
        outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true) 
          
          
            addEventHandler("onClientGUIClick",getRootElement(), 
                function() 
                    if ( source == GUIEditor_Button[1] ) then 
                             triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1])) 
                    end 
                end) 
          

Link to comment
الكود الي لما يسجل تختف النافذه ظبط اما الي اول ماتخش السيرفر ماظبط .!

وبنسبه للكود هاذا هو

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
  
GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) 
GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[1],255,0,0) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],255,0,0) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[4],255,0,0) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
guiSetVisible (GUIEditor_Window[1], true) 
 showCursor (false ) 
 guiSetInputEnabled(true 
  
        function mrsl6an() 
        guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
        showCursor(guiGetVisible(GUIEditor_Window[1])) 
        playSound("mrsl6an.wav", false) 
        end 
        bindKey ("f6", "down", mrsl6an) 
          
addEventHandler ("onClientGUIClick", getRootElement(), 
  
function(button, state, absoluteX, absoluteY) 
  
if ( source ==  GUIEditor_Button[1] ) then 
guiSetVisible (GUIEditor_Window[1], false) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
end 
end) 
  
          
        guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") 
  
          
          
         outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) 
        outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true) 
          
          
            addEventHandler("onClientGUIClick",getRootElement(), 
                function() 
                    if ( source == GUIEditor_Button[1] ) then 
                             triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1])) 
                    end 
                end) 
          

جرب هذا

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
  
GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) 
guiSetVisible(GUIEditor_Window[1],true) 
showCursor (true) 
GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[1],255,0,0) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],255,0,0) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[4],255,0,0) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
  
bindKey ( "F6" , "down" , function() 
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
playSound("mrsl6an.wav", false) 
end 
end) 
          
addEventHandler ("onClientGUIClick", getRootElement(), 
  
function(button, state, absoluteX, absoluteY) 
  
if ( source ==  GUIEditor_Button[1] ) then 
guiSetVisible (GUIEditor_Window[1], false) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
end 
end) 
  
          
        guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") 
  
          
          
         outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) 
        outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true) 
          
          
            addEventHandler("onClientGUIClick",getRootElement(), 
                function() 
                    if ( source == GUIEditor_Button[1] ) then 
                             triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1])) 
                    end 
                end) 
          

Link to comment

ججرب ذا

  
    GUIEditor_Window = {} 
    GUIEditor_Button = {} 
    GUIEditor_Label = {} 
    GUIEditor_Edit = {} 
      
    GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) 
    GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) 
    GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) 
    GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) 
    guiSetFont(GUIEditor_Button[1],"default-bold-small") 
    GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) 
    guiLabelSetColor(GUIEditor_Label[1],255,0,0) 
    guiSetFont(GUIEditor_Label[1],"default-bold-small") 
    GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) 
    guiLabelSetColor(GUIEditor_Label[2],255,0,0) 
    guiSetFont(GUIEditor_Label[2],"default-bold-small") 
    GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) 
    guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
    guiSetFont(GUIEditor_Label[3],"default-bold-small") 
    GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) 
    guiLabelSetColor(GUIEditor_Label[4],255,0,0) 
    guiSetFont(GUIEditor_Label[4],"default-bold-small")   
    guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") 
    guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000")    
     
addEventHandler("onClientResourceStart",resourceRoot, 
    function() 
        guiSetVisible ( GUIEditor_Window[1], true ) 
        showCursor ( true ) 
        guiSetInputEnabled( true ) 
        outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true)   
    end 
) 
  
addEventHandler("onClientGUIClick", root, 
    function()    
        if ( source ==  GUIEditor_Button[1] ) then 
            username = guiGetText ( GUIEditor_Edit[1] ) 
            password = guiGetText ( GUIEditor_Edit[2] ) 
            triggerServerEvent("onLoginAndRegister",localPlayer,username,password) 
            guiSetVisible ( GUIEditor_Window[1], false)  
            showCursor ( false ) 
            guiSetInputEnabled ( false ) 
        end 
    end 
) 

Link to comment

خخخخ قول كيذا من قبل

تفضل

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
  
GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) 
guiSetVisible(GUIEditor_Window[1],true) 
showCursor (true) 
GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[1],255,0,0) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],255,0,0) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[4],255,0,0) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
--      
addEventHandler ("onClientGUIClick", getRootElement(), 
  
function(button, state, absoluteX, absoluteY) 
  
if ( source ==  GUIEditor_Button[1] ) then 
guiSetVisible (GUIEditor_Window[1], false) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
end 
end) 
  
          
        guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000") 
  
          
          
         outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true) 
        outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true) 
          
          
            addEventHandler("onClientGUIClick",getRootElement(), 
                function() 
                    if ( source == GUIEditor_Button[1] ) then 
                             triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1])) 
                    end 
                end) 

Link to comment
يالغلا انت مافهمتني هو يفتح بس

بس كمان يسير يفتح باف 6

انا بس ابيه لما يخش بدون زر واسف يمكن ماوضحت من البدايه

:arrowdown:

ججرب ذا
  
    GUIEditor_Window = {} 
    GUIEditor_Button = {} 
    GUIEditor_Label = {} 
    GUIEditor_Edit = {} 
      
    GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false) 
    GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1]) 
    GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1]) 
    GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1]) 
    guiSetFont(GUIEditor_Button[1],"default-bold-small") 
    GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1]) 
    guiLabelSetColor(GUIEditor_Label[1],255,0,0) 
    guiSetFont(GUIEditor_Label[1],"default-bold-small") 
    GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1]) 
    guiLabelSetColor(GUIEditor_Label[2],255,0,0) 
    guiSetFont(GUIEditor_Label[2],"default-bold-small") 
    GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1]) 
    guiLabelSetColor(GUIEditor_Label[3],255,0,0) 
    guiSetFont(GUIEditor_Label[3],"default-bold-small") 
    GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1]) 
    guiLabelSetColor(GUIEditor_Label[4],255,0,0) 
    guiSetFont(GUIEditor_Label[4],"default-bold-small")   
    guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000") 
    guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000")    
     
addEventHandler("onClientResourceStart",resourceRoot, 
    function() 
        guiSetVisible ( GUIEditor_Window[1], true ) 
        showCursor ( true ) 
        guiSetInputEnabled( true ) 
        outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true)   
    end 
) 
  
addEventHandler("onClientGUIClick", root, 
    function()    
        if ( source ==  GUIEditor_Button[1] ) then 
            username = guiGetText ( GUIEditor_Edit[1] ) 
            password = guiGetText ( GUIEditor_Edit[2] ) 
            triggerServerEvent("onLoginAndRegister",localPlayer,username,password) 
            guiSetVisible ( GUIEditor_Window[1], false)  
            showCursor ( false ) 
            guiSetInputEnabled ( false ) 
        end 
    end 
) 

WTF :?

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