Adham Posted May 1, 2016 Share Posted May 1, 2016 سسلأم عليكم انا عامل شيك بوكس اسمهه Support وعامل لما يضعط عليه يجي اسمه في القريد لست انا ابي اعمل لما يشيل العلامه من الشيك بوكس اسمو يختفو من القريد لست شو استخدم فكشنات Link to comment
#|_oskar_|# Posted May 1, 2016 Share Posted May 1, 2016 اطرح محاولتك خلينا نشوف اللى عامله انت Link to comment
Adham Posted May 1, 2016 Author Share Posted May 1, 2016 كلنت addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true then local PlrName = getPlayerName(localPlayer) triggerServerEvent('allPlayers',localPlayer,PlrName) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false then triggerServerEvent('allPlayers1',localPlayer) end end ) addEvent('Suppport',true) addEventHandler('Suppport',root, function ( PlrName ) local Roww = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2],Roww,1," "..PlrName.." ",false,false) end ) addEvent('Suppport2',true) addEventHandler('Suppport2',root, function ( ) guiGridListRemoveRow(GUIEditor.gridlist[2],Roww) end ) سرفر addEvent('allPlayers',true) addEventHandler('allPlayers',root, function ( PlrName ) for i, v in ipairs ( getElementsByType( 'player' ) ) do triggerClientEvent(v,'Suppport',v,PlrName) end end ) addEvent('allPlayers1',true) addEventHandler('allPlayers1',root, function ( ) for i, v in ipairs ( getElementsByType( 'player' ) ) do triggerClientEvent(v,'Suppport2',v) end end ) Link to comment
#|_oskar_|# Posted May 1, 2016 Share Posted May 1, 2016 انت عايز اللاعب بس اللى يخفي اسمه ولا لما يضغط عالشيك بوكس يخفي كل الاسامي ؟ Link to comment
Adham Posted May 1, 2016 Author Share Posted May 1, 2016 لالا انا عملت لما يضعط علي شيك بوكس يجي اسمو في القريد لست انا عاوز لما يضعط علي الشيك بوكس يجي اسمه عملتها دي. عاوز لما يشيل العلامه من الشيك بوكس يختفي اسم اللاعب الحدد الشيك بوكس مب كل الاسامي Link to comment
#|_oskar_|# Posted May 1, 2016 Share Posted May 1, 2016 جرب GUIEditor = { checkbox = {}, edit = {}, button = {}, window = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(165, 176, 669, 494, "", false) guiWindowSetSizable(GUIEditor.window[1], false) SupportList = guiCreateGridList(9, 23, 650, 421, false, GUIEditor.window[1]) guiGridListAddColumn(SupportList, "Message",1) GUIEditor.edit[1] = guiCreateEdit(10, 447, 434, 37, "", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(445, 444, 109, 40, "اخفاء الاسم", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(553, 443, 106, 41, "ارسال", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetEnabled (SupportList, false ) addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("allPlayers",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent('Suppport',true) addEventHandler('Suppport',root,function (Message,PlrName ) local Roww = guiGridListAddRow(SupportList) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then guiGridListSetItemText(SupportList,Roww,1," "..PlrName.." : " ..Message,false,false) guiGridListSetItemColor (SupportList,Roww,1,0,255,0) elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == false ) then guiGridListSetItemText(SupportList,Roww,1," unknown : "..Message.." ",false,false) guiGridListSetItemColor (SupportList,Roww,1,255,0,0) end end) addEvent('allPlayers',true) addEventHandler('allPlayers',root, function (Message) for i, v in ipairs ( getElementsByType( 'player' ) ) do triggerClientEvent(v,'Suppport',v,Message,getPlayerName(source):gsub("#%x%x%x%x%x%x", "")) end end) Link to comment
Adham Posted May 1, 2016 Author Share Posted May 1, 2016 ما شتغلت لما بحط العلامه علي القيشك بوكس مب بتظهر الاسم Link to comment
billal Posted May 1, 2016 Share Posted May 1, 2016 GUIEditor = { checkbox = {}, edit = {}, button = {}, window = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(165, 176, 669, 494, "", false) guiWindowSetSizable(GUIEditor.window[1], false) SupportList = guiCreateGridList(9, 23, 650, 421, false, GUIEditor.window[1]) guiGridListAddColumn(SupportList, "Message",1) GUIEditor.edit[1] = guiCreateEdit(10, 447, 434, 37, "", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(445, 444, 109, 40, "اخفاء الاسم", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(553, 443, 106, 41, "ارسال", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetEnabled (SupportList, false ) addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("allPlayers",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent('Suppport',true) addEventHandler('Suppport',root,function (Message,PlrName ) local Roww = guiGridListAddRow(SupportList) if PlrName == tonumber(PlrName) then elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then guiGridListSetItemText(SupportList,Roww,1," unknown :" ..Message,false,false) guiGridListSetItemColor (SupportList,Roww,1,255,0,0) elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == false ) then guiGridListSetItemText(SupportList,Roww,1," "..PlrName.." : " ..Message,false,false) guiGridListSetItemColor (SupportList,Roww,1,0,255,0) end end) addEvent('allPlayers',true) addEventHandler('allPlayers',root, function (Message) for i, v in ipairs ( getElementsByType( 'player' ) ) do triggerClientEvent(v,'Suppport',v,Message,getPlayerName(source):gsub("#%x%x%x%x%x%x", "")) end end) Link to comment
#|_oskar_|# Posted May 1, 2016 Share Posted May 1, 2016 ما ظبت ^ وش اللى ماضبط بالظبط ؟ لاني قبل مااعطيك الكود مجربه وشغال + اطرح كودك اللى شغال عليه انت يمكن سويت شئ وخرب Link to comment
billal Posted May 3, 2016 Share Posted May 3, 2016 GUIEditor = { checkbox = {}, edit = {}, button = {}, window = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(165, 176, 669, 494, "", false) guiWindowSetSizable(GUIEditor.window[1], false) SupportList = guiCreateGridList(9, 23, 650, 421, false, GUIEditor.window[1]) guiGridListAddColumn(SupportList, "Message",1) GUIEditor.edit[1] = guiCreateEdit(10, 447, 434, 37, "", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(445, 444, 109, 40, "اخفاء الاسم", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(553, 443, 106, 41, "ارسال", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetEnabled (SupportList, false ) addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("allPlayers",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent('Suppport',true) addEventHandler('Suppport',root,function (Message,PlrName ) local Roww = guiGridListAddRow(SupportList) if PlrName == tonumber(PlrName) then elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then guiGridListSetItemText(SupportList,Roww,1," unknown :" ..Message,false,false) guiGridListSetItemColor (SupportList,Roww,1,255,0,0) elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == false ) then guiGridListSetItemText(SupportList,Roww,1," "..PlrName.." : " ..Message,false,false) guiGridListSetItemColor (SupportList,Roww,1,0,255,0) end end) addEvent('allPlayers',true) addEventHandler('allPlayers',root, function (Message) for i, v in ipairs ( getElementsByType( 'player' ) ) do triggerClientEvent(v,'Suppport',v,Message,getPlayerName(source):gsub("#%x%x%x%x%x%x", "")) end end) انا مجربه كدا اشتغل معي Link to comment
Abdul KariM Posted May 3, 2016 Share Posted May 3, 2016 ورجعنا على نفس الموال ؟ كم موضوع سويت بس عشان طلبك ذا ؟ امس ما افدت بالخاص ؟ ولا جالس تستهبل ؟ غريب والله Link to comment
Adham Posted May 3, 2016 Author Share Posted May 3, 2016 انت ما فهمني انا عملت قريد لست وعملت في شيك بوكس اليضعط عليه يظهر اسمه في القريد لست في قريد لستت تاني غير الرساله ذي وعاوز اليشيل العلامه اسمه يختفي خالص من القريد لست التاني مب النتو بتتكلمو عليه كد Link to comment
Adham Posted May 3, 2016 Author Share Posted May 3, 2016 انت ما فهمني انا عملت قريد لست وعملت في شيك بوكس اليضعط عليه يظهر اسمه في القريد لست في قريد لستت تاني غير الرساله ذي وعاوز اليشيل العلامه اسمه يختفي خالص من القريد لست التاني مب النتو بتتكلمو عليه كد Link to comment
#|_oskar_|# Posted May 3, 2016 Share Posted May 3, 2016 انت ما فهمنيانا عملت قريد لست وعملت في شيك بوكس اليضعط عليه يظهر اسمه في القريد لست في قريد لستت تاني غير الرساله ذي وعاوز اليشيل العلامه اسمه يختفي خالص من القريد لست التاني مب النتو بتتكلمو عليه كد يعني يحذف الرسايل واسمه وكل شئ صح ؟ Link to comment
Adham Posted May 3, 2016 Author Share Posted May 3, 2016 يب بس اسم الشال شيك بوكس لو ما شال اسمو يكون موجود Link to comment
[iMr]-W[i]Fi,.! Posted May 4, 2016 Share Posted May 4, 2016 function Refresh() triggerServerEvent('allPlayers',localPlayer) end addEvent('SupportOnline',true) addEventHandler('SupportOnline',root,function ( ) local Roww = guiGridListAddRow(SupportList) local PlrName = getPlayerName ( source ) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then guiGridListSetItemText(SupportList,Roww,1,""..PlrName.."",false,false) guiGridListSetItemColor (SupportList,Roww,1,0,255,0) elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == false ) then guiGridListRemoveRow(SupportList,Roww) end end) addEvent('allPlayers',true) addEventHandler('allPlayers',root, function ( ) for i, v in ipairs ( getElementsByType( 'player' ) ) do triggerClientEvent(v,'SupportOnline',v) 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