Adham Posted May 25, 2016 Share Posted May 25, 2016 السلام عليكم اببي فكشن انا عامل 2 شيك بوكس عاوز لما يحدد علي شيك بوكس الاول عامل عليه علامه وجا يعمل علي التاني تشيل العلامه من الاول والعكس والحدث المناسب # Link to comment
Adham Posted May 25, 2016 Author Share Posted May 25, 2016 ردو يشباب من امبارح كذا وشوف ذا من فضلك سلام عليكم انا مسوي سبورت سيستم اوك؟ وعامل شيك بوكس اسمه support عاوز المضعطش عليه الشيك بوكس وكتب في الايديت وضعط علي send يرسل في القريد لست عادي بس يكون لونو مختلف ولما حد تاني ضعط علي سبورت يكون لونو مختلف فهمتوني؟ Link to comment
Adham Posted May 25, 2016 Author Share Posted May 25, 2016 الكود السويته addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[2]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[2])) guiSetText (GUIEditor.edit[2], "" ) else guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local hour = getRealTime().hour local minute = getRealTime().minute local second = getRealTime().second+1 if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[2]),255,255,0,true) end end end) addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[2]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[2])) guiSetText (GUIEditor.edit[2], "" ) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local hour = getRealTime().hour local minute = getRealTime().minute local second = getRealTime().second+1 local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 255, 136, 0) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[2]),255,255,0,true) end end) Link to comment
Ja[B]er[X]Pro Posted May 25, 2016 Share Posted May 25, 2016 (edited) -------- Edited May 25, 2016 by Guest Link to comment
Ja[B]er[X]Pro Posted May 25, 2016 Share Posted May 25, 2016 addEventHandler("onClientGUIClick",root,function() if (source == checkboxName) and ( guiCheckBoxGetSelected( checkboxName ) == true ) then guiCheckBoxSetSelected(checkboxName2,false) end end) دا مثال سويته لك بسرعة غير مجرب اسف ان يوجد خطأ Link to comment
MR.GRAND Posted May 25, 2016 Share Posted May 25, 2016 addEventHandler( 'onClientGUIClick', root, function( ) if (source == checkBox[1]) then guiCheckBoxSetSelected(source, false) end end ) Link to comment
Adham Posted May 25, 2016 Author Share Posted May 25, 2016 ردو يشباب من امبارح كذاوشوف ذا من فضلك سلام عليكم انا مسوي سبورت سيستم اوك؟ وعامل شيك بوكس اسمه support عاوز المضعطش عليه الشيك بوكس وكتب في الايديت وضعط علي send يرسل في القريد لست عادي بس يكون لونو مختلف ولما حد تاني ضعط علي سبورت يكون لونو مختلف فهمتوني؟ طيب الطلب ذا Link to comment
nxFairlywell Posted May 25, 2016 Share Posted May 25, 2016 هذا مثال و انت ضبط لين يضبط معك item = guiComboBoxGetSelected(comboBox) if item then guiGridListSetItemColor( grid list, row, column, red, green, blue ) else guiGridListSetItemColor( grid list, row, column, red, green, blue ) end Link to comment
Adham Posted May 25, 2016 Author Share Posted May 25, 2016 كذا؟ addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[2]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[2])) guiSetText (GUIEditor.edit[2], "" ) else guiSetEnabled(GUIEditor.button[1], false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local hour = getRealTime().hour local minute = getRealTime().minute local second = getRealTime().second+1 if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."]x "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false) else guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 255, 136, 0) end end end) Link to comment
Ja[B]er[X]Pro Posted May 26, 2016 Share Posted May 26, 2016 addEventHandler( 'onClientGUIClick', root, function( ) if (source == checkBox[1]) then guiCheckBoxSetSelected(source, false) end end ) أخي انت فهمته خطأ انت مسوي عندما يضغط على الشيك بوكس يخليه يمسح العلامة هو يبي عندما يضغط على شيك بوكس يمسح العلامة من شيك بوكس اخر Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now