Jump to content

x{كود}x


FAHD+18

Recommended Posts

السلام عليكم ورحمه الله وبركاته يا شباب انا ابي اسوي لوحه قوانين بس ابي اسوي عند الضغط علي اختيار من الكومبو بوكس مثلا عامل في الكومبو بوكس Arabic,English..

انا ضغط علي Arabic 

يظهرلي لوحه 

p_3651txi50.jpg

اتمني الكود جاهز 

Link to comment
addEventHandler("onClientGUIClick", root,
	function ()
		if source == comboboxx then
        	local comboboxxx = guiComboBoxGetSelected(comboboxx)
			local comboboxx2 = guiComboBoxGetSelected(comboboxx)
       	 	if comboboxxx == 0 then
        	guiSetText(SelLab,"اختيار اللغة")
			guiSetText(mylab,"مرحبأ بكم في السيرفر")
			elseif comboboxx2 == 1 then 
			guiSetText(SelLab,"Change the langue")
			guiSetText(mylab,"Welcome to the server")
  		  end
		end
	end
)

 

مثال كامل 


wnd = guiCreateWindow(568, 221, 450, 144, "تجربه", false)
guiSetVisible(wnd,false)
mylab = guiCreateLabel(13, 24, 217, 34, "مرحبأ بكم في السيرفر", false, wnd)
guiSetFont(mylab, "default-bold-small")
guiLabelSetColor(mylab, 254, 209, 0)
guiLabelSetHorizontalAlign(mylab, "center", false)
guiLabelSetVerticalAlign(mylab, "center")
comboboxx = guiCreateComboBox(289, 28, 151, 106, "", false, wnd)
guiComboBoxAddItem(comboboxx, "عربي")
guiComboBoxAddItem(comboboxx, "English")
SelLab = guiCreateLabel(292, 56, 148, 19, "اختيار اللغة", false, wnd)
guiSetFont(SelLab, "default-bold-small")
guiLabelSetColor(SelLab, 254, 209, 0)
guiLabelSetHorizontalAlign(SelLab, "center", false)
guiLabelSetVerticalAlign(SelLab, "center")


open = function()
    guiSetVisible( wnd, not guiGetVisible( wnd ) ) 
    showCursor( guiGetVisible( wnd ) )
end
bindKey('M','down',open)

addEventHandler("onClientGUIClick", root,
function ()
if source == comboboxx then
        local comboboxxx = guiComboBoxGetSelected(comboboxx)
		local comboboxx2 = guiComboBoxGetSelected(comboboxx)
        if comboboxxx == 0 then
        guiSetText(SelLab,"اختيار اللغة")
		guiSetText(mylab,"مرحبأ بكم في السيرفر")
		elseif comboboxx2 == 1 then 
		guiSetText(SelLab,"Change the langue")
		guiSetText(mylab,"Welcome to the server")
    end
	end
end
)

 

انت تبي لما اللاعب يختار يغير الكلام اللي في اللوحة ولا وش قصدك؟

واذا قصدك اول ما يختار يفتحله لوحة ثانية @ 

جرب ذا



addEventHandler("onClientGUIClick", root,
function ()
if source == comboboxx then
        local comboboxxx = guiComboBoxGetSelected(comboboxx)
		local comboboxx2 = guiComboBoxGetSelected(comboboxx)
        if comboboxxx == 0 then
		guiSetVisible(wnd,true)
        showCursor(true)
		elseif comboboxx2 == 1 then 
		guiSetVisible(wnd2,true)
        showCursor(true)
    end
	end
end
)

 

Edited by Abu-Solo
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...