Adham Posted April 2, 2016 Share Posted April 2, 2016 السلام عليكم انا سويت لوحه مود سبورت سيستم لاكن مش شغال ولا بيبعت كلنت GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, label = {}, checkbox = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(67, 98, 680, 435, ":: Support Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd ,false) GUIEditor.button[1] = guiCreateButton(647, 23, 23, 19, "X", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(504, 411, 245, 24, "#Created By [L]e3bA | v3.4.1", false, wnd) guiLabelSetColor(GUIEditor.label[1], 253, 0, 0) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 18, 661, 390, false, wnd) GUIEditor.tab[1] = guiCreateTab("Live Chat", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(6, 5, 501, 316, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Message", 0.9) GUIEditor.edit[1] = guiCreateEdit(6, 322, 392, 27, "", false, GUIEditor.tab[1]) GUIEditor.button[2] = guiCreateButton(400, 322, 103, 28, "Send", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.checkbox[1] = guiCreateCheckBox(514, 325, 137, 15, "Show news in chat", false, false, GUIEditor.tab[1]) GUIEditor.gridlist[2] = guiCreateGridList(514, 5, 141, 314, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[2], "Support List", 0.9) end ) guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) ------------ addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(wnd,false) showCursor(false) end end ) -------------- addEvent("online",true) addEventHandler("online", root, function (name) local g = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2],g, 1,""..name.."", false, false) end) -- addEventHandler("onClientGUIClick",GUIEditor.button[2],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent("sendmessage",true) addEventHandler("sendmessage",root, function() local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,getPlayerName(localPlayer), false, false) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,guiGetText(GUIEditor.edit[1]), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 255, 0, 0, 255) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2, 35, 254, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then outputChatBox("[support-System] #FF0000"..getPlayerName(localPlayer).."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function() local gg = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2],gg, 1,getPlayerName(localPlayer), false, false) guiGridListSetItemText(GUIEditor.gridlist[2],gg, 2,guiGetText(GUIEditor.edit[1]), false, false) guiGridListSetItemColor(GUIEditor.gridlist[2],gg, 1, 255, 0, 0, 255) guiGridListSetItemColor(GUIEditor.gridlist[2],gg, 2, 35, 254, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then outputChatBox("[support-System] #FF0000"..getPlayerName(localPlayer).."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) سرفر addEvent("refresh",true) addEventHandler("refresh",root,function () for k,v in ipairs (getElementsByType("player")) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)),aclGetGroup("Support")) ) then triggerClientEvent("online",source,getPlayerName(v)) end end end) addEvent("support",true) addEventHandler("support",root,function () if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then triggerClientEvent("sendmessage",) else triggerClientEvent("sendmessage2",source) end end) Link to comment
Mhmd.z Posted April 2, 2016 Share Posted April 2, 2016 triggerClientEvent("sendmessage",) : triggerClientEvent("sendmessage",source) اسم الاعب ييجي بالسبورت لست مو بالليست حقت الشات, ولازم تسوي قسمين لليست قسم فيه اسم الاعب وقسم فيه الكلام يعني كذه: guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Message", 0.4) Link to comment
Mhmd.z Posted April 2, 2016 Share Posted April 2, 2016 (edited) --server addEvent("refresh",true) addEventHandler("refresh",root,function () for k,v in ipairs (getElementsByType("player")) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)),aclGetGroup("Support")) ) then triggerClientEvent("online",source,getPlayerName(v)) end end end) addEvent("support",true) addEventHandler("support", root,function () if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then triggerClientEvent("sendmessage",source) else triggerClientEvent("sendmessage2",source) end end) --client addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function() local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,getPlayerName(localPlayer), false, false) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,guiGetText(GUIEditor.edit[1]), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 255, 0, 0, 255) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2, 35, 254, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then outputChatBox("[support-System] #FF0000"..getPlayerName(localPlayer).."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) Edited April 2, 2016 by Guest Link to comment
#TeKa Posted April 2, 2016 Share Posted April 2, 2016 شوف اللوحه كلها صحيحه بس السيرفر خربان بصلحها لك Server Side addEvent("refresh",true) addEventHandler("refresh",root,function () for k,v in ipairs (getElementsByType("player")) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)),aclGetGroup("Support")) ) then triggerClientEvent("online",source,getPlayerName(v)) end end end) addEvent("support",true) addEventHandler("support",root,function () if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then triggerClientEvent("sendmessage",) else triggerClientEvent("sendmessage2",source) end end) client side function re() guiGridListClear(supportonline) triggerServerEvent("refresh",localPlayer) end addEventHandler("onClientGUIClick",root, function() if (source ==اسم البيوتن الي تضغط عليه يظهر لك لوحة القوانين) then guiSetVisible(ruless, not guiGetVisible(ruless) ) showCursor( guiGetVisible(اسم لوحة القوانين) ) end end) addEventHandler("onClientGUIClick",root, function() if (source == اسم البيوتن حق القفل)then guiSetVisible(ruless,false) showCursor(false) end end) bindKey("F5","down", function() guiSetVisible(supportsystem, not guiGetVisible(اسم اللوحه) ) showCursor( guiGetVisible(اسم اللوحه) ) re() end) addEvent("online",true) addEventHandler("online", root, function (name) local g = guiGridListAddRow(supportonline) guiGridListSetItemText(supportonline,g, 1,""..name.."", false, false) end) addEventHandler("onClientGUIClick",button1,function () if guiGetText(edit1) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(edit1)) end end, false) addEvent("sendmessage",true) addEventHandler("sendmessage",root, function() local gg = guiGridListAddRow(supportchat) guiGridListSetItemText(supportchat,gg, 1,getPlayerName(localPlayer).." : "..guiGetText(edit1), false, false) if ( guiCheckBoxGetSelected( checkbox1 ) == true ) then outputChatBox("[الاسم الي تبيه يرسل به الاسبورت]"..getPlayerName(localPlayer).." : "..guiGetText(edit1),255,255,0) end end) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function() local gg = guiGridListAddRow(supportchat) guiGridListSetItemText(supportchat,gg, 1,getPlayerName(localPlayer).." : "..guiGetText(edit1), false, false) if ( guiCheckBoxGetSelected( checkbox1 ) == true ) then outputChatBox("[الاسم الي تبيه يرسل به الاسبورت]"..getPlayerName(localPlayer).." : "..guiGetText(edit1),255,255,0) end end) اتمنا اني افادتك بس اللوحه كان فيها اخطاء كثيره يعتبر انا الي صنعت نص اللوحه Link to comment
#TeKa Posted April 2, 2016 Share Posted April 2, 2016 ما ظبت . شوف يمكن انت تخذها بدون اسطر و حاول تعمل /debugscript 3 و شوف وش يطلعلك و ارسلو هون و انشاء الله راح اساعدك Link to comment
Adham Posted April 2, 2016 Author Share Posted April 2, 2016 ما يطلع شي اللوحه تتفح عادي لاكن ما تعمل Send ولا شي ارجو تعملهوها Link to comment
#|_oskar_|# Posted April 2, 2016 Share Posted April 2, 2016 GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, label = {}, checkbox = {}, gridlist = {} } wnd = guiCreateWindow(67, 98, 680, 435, ":: Support Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd ,false) GUIEditor.button[1] = guiCreateButton(647, 23, 23, 19, "X", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(504, 411, 245, 24, "#Created By [L]e3bA | v3.4.1", false, wnd) guiLabelSetColor(GUIEditor.label[1], 253, 0, 0) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 18, 661, 390, false, wnd) GUIEditor.tab[1] = guiCreateTab("Live Chat", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(6, 5, 501, 316, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) guiGridListAddColumn(GUIEditor.gridlist[1], "Message", 0.9) GUIEditor.edit[1] = guiCreateEdit(6, 322, 392, 27, "", false, GUIEditor.tab[1]) GUIEditor.button[2] = guiCreateButton(400, 322, 103, 28, "Send", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.checkbox[1] = guiCreateCheckBox(514, 325, 137, 15, "Show news in chat", false, false, GUIEditor.tab[1]) GUIEditor.gridlist[2] = guiCreateGridList(514, 5, 141, 314, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[2], "Name", 0.9) guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) ------------ addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(wnd,false) showCursor(false) end end ) -------------- addEvent("online",true) addEventHandler("online", root, function (name) local g = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2],g, 1,""..name.."", false, false) end) -- addEventHandler("onClientGUIClick",GUIEditor.button[2],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name, false, false) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,tostring(Text), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 255, 0, 0, 255) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2, 35, 254, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) addEvent("refresh",true) addEventHandler("refresh",root,function () for k,v in ipairs (getElementsByType("player")) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)),aclGetGroup("Support")) ) then triggerClientEvent("online",source,getPlayerName(v)) end end end) addEvent("support",true) addEventHandler("support",root,function (text) if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then triggerClientEvent("sendmessage2",source,getPlayerName(source),text) else triggerClientEvent("sendmessage2",source,getPlayerName(source),text) end end) Link to comment
Adham Posted April 2, 2016 Author Share Posted April 2, 2016 ايوا بس فيه مشكله كلو عمل تمام لاما بكتب شي و بيعمل بيكون بعيد عندي يعني لازم اعمل الماوس عشان اجيب الكلام بعيدا عاوز اليكتب يكون قريبا الرساله Link to comment
Jupi Posted April 2, 2016 Share Posted April 2, 2016 ايوا بس فيه مشكلهكلو عمل تمام لاما بكتب شي و بيعمل بيكون بعيد عندي يعني لازم اعمل الماوس عشان اجيب الكلام بعيدا عاوز اليكتب يكون قريبا الرساله قلل طول الكولمن ... او هات السطر حق guiGridListAddColumn Link to comment
#|_oskar_|# Posted April 2, 2016 Share Posted April 2, 2016 ايوا بس فيه مشكلهكلو عمل تمام لاما بكتب شي و بيعمل بيكون بعيد عندي يعني لازم اعمل الماوس عشان اجيب الكلام بعيدا عاوز اليكتب يكون قريبا الرساله guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) --عدل ع رقم تسعه عشان تقربهم من بعض guiGridListAddColumn(GUIEditor.gridlist[1], "Message", 0.9) --- رقم 9 المسافه بين الاسم والرساله 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