Jump to content

حل كود


Recommended Posts

لازم تسوي تاكيد اذ الاعب مسجل دخول

مايخيليه يسجل دخول مره اخرى او مسوي تسجيل وهو مسجل مايسجل معه + الرسالة تطلع للشخص فقط عشان ماتسوي فلود للجميع #

Link to comment
  • 2 weeks later...
  
addEventHandler ("onClientGUIClick", root, 
function(button, state, absoluteX, absoluteY) 
    if ( source ==  GUIEditor.button[1] ) then   
    triggerServerEvent("onlogin",localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2 
       end  
    end 
) 
  
addEventHandler ("onClientGUIClick", root, 
function(button, state, absoluteX, absoluteY) 
    if ( source ==  GUIEditor.button[2] ) then 
        triggerServerEvent("onregister",localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2])) 
        end 
    end 
) 
  

^طيب يا شباب الحين انا فرقت هذا صح او لا^

Link to comment

شباب شوفولي حل مع هذا الكود

  
GUIEditor = { 
    tabpanel = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(202, 120, 504, 411, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 22, 485, 379, false, GUIEditor.window[1]) 
  
        tab1 = guiCreateTab("Tab", GUIEditor.tabpanel[1]) 
  
        playerName = guiCreateLabel(8, 120, 467, 15, "Your Name :", false, tab1)     
    end 
) 
  
  
guiLabelSetColor(playerName,0,255,0) 
guiSetText ( playerName, getPlayerName(localPlayer)) 
function refreshStats() 
if guiGetVisible(tab1,true) then 
else 
   guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 
  
  
bindKey ( "F12" , "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) 
  
 end 
 end 
 ) 
  

Link to comment
-- Client Side # 
GUIEditor = { 
    tabpanel = {}, 
    window = {} 
} 
  
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(202, 120, 504, 411, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible ( GUIEditor.window[1], false ) 
  
        GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 22, 485, 379, false, GUIEditor.window[1]) 
  
        tab1 = guiCreateTab("Tab", GUIEditor.tabpanel[1]) 
  
        playerName = guiCreateLabel(8, 120, 467, 15, "Your Name: N/A", false, tab1) 
        guiLabelSetColor ( playerName, 0, 255, 0 ) 
    end 
) 
  
  
addEventHandler ( "onClientRender", root, 
    function ( ) 
        if ( guiGetVisible ( GUIEditor.window[1] ) ) then 
            guiSetText ( playerName, "Your Name: " .. getPlayerName ( localPlayer ) ) 
        end 
    end 
) 
  
bindKey( "F12", "down", 
    function ( ) 
        guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) 
        showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
        guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) 
    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...