Abu-Solo Posted December 25, 2016 Share Posted December 25, 2016 السلام عليكم ورحمة الله وبركاتة الحين ابغي اعرف كيف آسوي مود اختيار لون الشات زي نفس اللي فـ الوزارة وكيف اسوي مود زخرفة اسمك. برضو نفس اللي بالوزارة لاهنتم اذا فيه مود زي كذا احد يرسله لي واذا مافيه , عطوني الفنكشنات وانا بسويه Link to comment
Jw8. Posted December 25, 2016 Share Posted December 25, 2016 function chatbox( text, type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("القروب")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(" * " .. getPlayerName ( source ) .. " #00ff00: " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [] " .. getPlayerName ( source ) .. "#00ff00: " .. text) تقدر تحط لون بخصوص ألزخرفة ,استخدم dxCreateFont --معرف أذأ ذه أنشالله تظبط Link to comment
Abu-Solo Posted December 25, 2016 Author Share Posted December 25, 2016 بيكرر اذا فيه تاج شغال ذذ Link to comment
Master_MTA Posted December 25, 2016 Share Posted December 25, 2016 سويها بالاكاونت داتا وسوي تحقق اذا الاكاونت عليه داتا سوي ريترن وخلاص Link to comment
Abu-Solo Posted December 25, 2016 Author Share Posted December 25, 2016 للي ما فهم قصدي هذا هو التصميم اللي سويته عشان تفهموني local screenW, screenH = guiGetScreenSize() WndColor = guiCreateWindow((screenW - 188) / 2, (screenH - 171) / 2, 188, 171, "لوحة تغيير لون الشات الخاص بك", false) guiWindowSetSizable(WndColor, false) guiSetVisible(WndColor,false) ColorEdit = guiCreateEdit(0.05, 0.22, 0.87, 0.18, "", true, WndColor) guiEditSetMaxLength(ColorEdit, 7) ColorSetBTN = guiCreateButton(0.05, 0.46, 0.86, 0.18, "تغيير اللون #", true, WndColor) Close_BTn = guiCreateButton(0.05, 0.85, 0.32, 0.09, "X", true, WndColor) local KEY="N" function OPEN() guiSetVisible(WndColor,true) showCursor(true) end bindKey(KEY,"down",OPEN) addEventHandler("onClientGUIClick",root,function() local list = guiGetText(ColorEdit) if source == Close_BTn then guiSetVisible(WndColor,false) showCursor(false) elseif source == ColorSetBTN then if list ~="" then triggerServerEvent("setData",localPlayer,list) else outputChatBox("pls write any thing") end end end ) ------------Server addEvent("setData",true) addEventHandler("setData",root,function(color) if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",false) setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end ) اشكر الاخ ماستر لـ مساعدتني فـ بعض الاكواد . يا ريت اي احد له خبره يقولي وش المشكلة منه, هذا ملف التاجات local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if getPlayerSerial(source) == 'D30DD1F9735A43BBD31BB15F655D5EA2' then outputChatBox('#33FFCC=[#FF0000$ЄRVЄR #FF0099ØЩИЄR#33FFCC]= #cc0000*#FFFF00[#FF00ccƛ#00ffccƁƲ-ƧƠԼƠ#FFFF00]#cc0000* ~:#ffffff'.. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("# #ff6600[ Server OwneR ] #ff0033#" .. name .. ":"..getAccountData(account,"color").."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("# #ff0000[ Server OwneR ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Help.Console")) then outputChatBox("# #66ff66[ Help Console ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then outputChatBox("# #66ffcc[ Ciriminal ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Console")) then outputChatBox("# #ccff00[ Dieputy Console ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Black")) then outputChatBox("# #cc6600[ Dieputy Black ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Managers")) then outputChatBox("# #cc3333[ Managers ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then outputChatBox("# #990099[ Manager ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Managers")) then outputChatBox("# #996600[ Vote Managers ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Manager")) then outputChatBox("# #996633[ Vote Manager ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then outputChatBox("# #99ff00[ Manager-Acl ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote.Manager-Acl")) then outputChatBox("# #ccff33[ Vote Manager-Acl ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Special.Prince")) then outputChatBox("# #000066[ Special Prince ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Admin")) then outputChatBox("# #ffff00[ Prince Admin ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then outputChatBox("# #3366ff[ Prince Server ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Admin")) then outputChatBox("# #0000ff[ King Admin ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then outputChatBox("# #669999[ Admin Black ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Mo7tref")) then outputChatBox("# #33ffff[ Admin Mo7taref ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Special.Admin")) then outputChatBox("# #990000[ Special Admin ]##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Boss")) then outputChatBox("# #333399[ Admin Boss ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then outputChatBox("# #ffcc00[ Admin General ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Server")) then outputChatBox("# #336666[ Admin Server ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then outputChatBox("# #990033[ Professional Admin ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("# #00ff00[ Head Admin ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then outputChatBox("# #660000[ Admin ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("# #999900[ SuperModerator ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("# #[ ff33ffModerator ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then outputChatBox("# #663333[ Police ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then outputChatBox("# #666600[ King Of Drift ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Time")) then outputChatBox("# #FFD700[#4B0082King Of Time#FFD700 ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox(" #FFD700[ #7CFC00Everyone#FFD700 ] #ffffff" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) end function WELCOME() end addEventHandler("onPlayerJoin", getRootElement(), WELCOME) end addEventHandler("onPlayerChat", root, chatbox) #Edit: 2 hours ago, DmAr511 said: function chatbox( text, type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("القروب")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(" * " .. getPlayerName ( source ) .. " #00ff00: " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [] " .. getPlayerName ( source ) .. "#00ff00: " .. text) تقدر تحط لون بخصوص ألزخرفة ,استخدم dxCreateFont --معرف أذأ ذه أنشالله تظبط انت فاهم غلط ابغي لما اللاعب يضغط علي زرار يغير اللون حق الشات, نفس الوزارة Link to comment
Abu-Solo Posted December 25, 2016 Author Share Posted December 25, 2016 باقي ما تمت الافادة @ Link to comment
iMr ~ MnHmAr Posted December 26, 2016 Share Posted December 26, 2016 (edited) جرب local screenW, screenH = guiGetScreenSize() WndColor = guiCreateWindow((screenW - 188) / 2, (screenH - 171) / 2, 188, 171, "لوحة تغيير لون الشات الخاص بك", false) guiWindowSetSizable(WndColor, false) guiSetVisible(WndColor,false) ColorEdit = guiCreateEdit(0.05, 0.22, 0.87, 0.18, "", true, WndColor) guiEditSetMaxLength(ColorEdit, 7) ColorSetBTN = guiCreateButton(0.05, 0.46, 0.86, 0.18, "تغيير اللون #", true, WndColor) Close_BTn = guiCreateButton(0.05, 0.85, 0.32, 0.09, "X", true, WndColor) local KEY="N" function OPEN() guiSetVisible(WndColor,true) showCursor(true) end bindKey(KEY,"down",OPEN) addEventHandler("onClientGUIClick",root,function() if source == Close_BTn then guiSetVisible(WndColor,false) showCursor(false) elseif source == ColorSetBTN then local color = guiGetText(ColorEdit) if color ~="" then triggerServerEvent("setData",localPlayer,color) else outputChatBox("pls write any thing" end end end ) ------------Server addEvent("setData",true) addEventHandler("setData",root,function(color) if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end ) addEventHandler("onPlayerChat", root,function ( ) if getAccountData ( getPlayerAccount(source), "colortag" ) then cancelEvent() local red, green, blue = getPlayerNametagColor(source) MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) if MsgColor then outputChatBox(getPlayerName(source)..":"..MsgColor..""..message, root, red, green, blue, true ) end end end ) outputChatBox("# #ccff00[ Dieputy Console ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) ":#FFFFFF " = هذا مكان لون الكلام تبع الاعب Edited December 26, 2016 by iMr ~ MnHmAr اضافة اسم الاكونت داتا + تصليح خطاء 1 Link to comment
Abu-Solo Posted December 26, 2016 Author Share Posted December 26, 2016 (edited) 46 minutes ago, iMr ~ MnHmAr said: جرب local screenW, screenH = guiGetScreenSize() WndColor = guiCreateWindow((screenW - 188) / 2, (screenH - 171) / 2, 188, 171, "لوحة تغيير لون الشات الخاص بك", false) guiWindowSetSizable(WndColor, false) guiSetVisible(WndColor,false) ColorEdit = guiCreateEdit(0.05, 0.22, 0.87, 0.18, "", true, WndColor) guiEditSetMaxLength(ColorEdit, 7) ColorSetBTN = guiCreateButton(0.05, 0.46, 0.86, 0.18, "تغيير اللون #", true, WndColor) Close_BTn = guiCreateButton(0.05, 0.85, 0.32, 0.09, "X", true, WndColor) local KEY="N" function OPEN() guiSetVisible(WndColor,true) showCursor(true) end bindKey(KEY,"down",OPEN) addEventHandler("onClientGUIClick",root,function() if source == Close_BTn then guiSetVisible(WndColor,false) showCursor(false) elseif source == ColorSetBTN then local color = guiGetText(ColorEdit) if color ~="" then triggerServerEvent("setData",localPlayer,color) else outputChatBox("pls write any thing" end end end ) ------------Server addEvent("setData",true) addEventHandler("setData",root,function(color) if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end ) addEventHandler("onPlayerChat", root,function ( ) if getAccountData ( getPlayerAccount(source), "colortag" ) then cancelEvent() local red, green, blue = getPlayerNametagColor(source) MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) if MsgColor then outputChatBox(getPlayerName(source)..":"..MsgColor..""..message, root, red, green, blue, true ) end end end ) outputChatBox("# #ccff00[ Dieputy Console ] ##ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) ":#FFFFFF " = هذا مكان لون الكلام تبع الاعب ":#FFFFFF " = هذا مكان لون الكلام تبع الاعب انا ابيه لما يغير اللون يتغير معه لون التاج + لاهنت علي الكود تمت الافادة, يعطيك العافية @ Edited December 26, 2016 by Abu-Solo Link to comment
iMr ~ MnHmAr Posted December 26, 2016 Share Posted December 26, 2016 الله يعفيك + هل السكرت اشتغل معك او لا تبي لون التاج + الكلام نفس بعض ؟ + 1 Link to comment
Abu-Solo Posted December 27, 2016 Author Share Posted December 27, 2016 14 hours ago, iMr ~ MnHmAr said: الله يعفيك + هل السكرت اشتغل معك او لا تبي لون التاج + الكلام نفس بعض ؟ + لما اغير اللون يتغير عند كل اللاعبين , + السكربت شغال Link to comment
iMr ~ MnHmAr Posted December 27, 2016 Share Posted December 27, 2016 انت تبي تسوي الوان لـ اشخاص عبر سريال ولا رتبه ؟ Link to comment
Abu-Solo Posted December 27, 2016 Author Share Posted December 27, 2016 37 minutes ago, iMr ~ MnHmAr said: انت تبي تسوي الوان لـ اشخاص عبر سريال ولا رتبه ؟ اثنينهم Link to comment
iMr ~ MnHmAr Posted December 27, 2016 Share Posted December 27, 2016 Just now, Abu-Solo said: اثنينهم لما ارسلت التقريت لـ السيرفر سوي في اول سطور الفانكشن حق استقابل التقريت تحقق من الرتبه او السريال او كلاهما لان انت مسوي الي يضرب الزر يعطيه اكونت داتا Link to comment
Abu-Solo Posted December 27, 2016 Author Share Posted December 27, 2016 Just now, iMr ~ MnHmAr said: لما ارسلت التقريت لـ السيرفر سوي في اول سطور الفانكشن حق استقابل التقريت تحقق من الرتبه او السريال او كلاهما لان انت مسوي الي يضرب الزر يعطيه اكونت داتا يعطيك العافية, ولكن المشكلة هي لما اغير اللون حق الشات الخاص فيني يغير اللون حق اللاعبين اللي في السيرفر Link to comment
iMr ~ MnHmAr Posted December 27, 2016 Share Posted December 27, 2016 (edited) local screenW, screenH = guiGetScreenSize() WndColor = guiCreateWindow((screenW - 188) / 2, (screenH - 171) / 2, 188, 171, "لوحة تغيير لون الشات الخاص بك", false) guiWindowSetSizable(WndColor, false) guiSetVisible(WndColor,false) ColorEdit = guiCreateEdit(0.05, 0.22, 0.87, 0.18, "", true, WndColor) guiEditSetMaxLength(ColorEdit, 7) ColorSetBTN = guiCreateButton(0.05, 0.46, 0.86, 0.18, "تغيير اللون #", true, WndColor) Close_BTn = guiCreateButton(0.05, 0.85, 0.32, 0.09, "X", true, WndColor) local KEY="N" function OPEN() guiSetVisible(WndColor,true) showCursor(true) end bindKey(KEY,"down",OPEN) addEventHandler("onClientGUIClick",root,function() if source == Close_BTn then guiSetVisible(WndColor,false) showCursor(false) elseif source == ColorSetBTN then local color = guiGetText(ColorEdit) if color ~="" then triggerServerEvent("setData",localPlayer,color) else outputChatBox("pls write any thing" end end end ) ------------Server addEvent("setData",true) addEventHandler("setData",root,function(color) --- لاتنسى التحقق * if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end ) addEventHandler("onPlayerChat", root,function ( ) local MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) if MsgColor then cancelEvent() local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source)..":"..MsgColor..""..message, root, red, green, blue, true ) else local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source).." :#ffffff" ..message, root, red, green, blue, true ) end end ) جرب Edited December 27, 2016 by iMr ~ MnHmAr 1 Link to comment
Abu-Solo Posted December 27, 2016 Author Share Posted December 27, 2016 6 minutes ago, iMr ~ MnHmAr said: local screenW, screenH = guiGetScreenSize() WndColor = guiCreateWindow((screenW - 188) / 2, (screenH - 171) / 2, 188, 171, "لوحة تغيير لون الشات الخاص بك", false) guiWindowSetSizable(WndColor, false) guiSetVisible(WndColor,false) ColorEdit = guiCreateEdit(0.05, 0.22, 0.87, 0.18, "", true, WndColor) guiEditSetMaxLength(ColorEdit, 7) ColorSetBTN = guiCreateButton(0.05, 0.46, 0.86, 0.18, "تغيير اللون #", true, WndColor) Close_BTn = guiCreateButton(0.05, 0.85, 0.32, 0.09, "X", true, WndColor) local KEY="N" function OPEN() guiSetVisible(WndColor,true) showCursor(true) end bindKey(KEY,"down",OPEN) addEventHandler("onClientGUIClick",root,function() if source == Close_BTn then guiSetVisible(WndColor,false) showCursor(false) elseif source == ColorSetBTN then local color = guiGetText(ColorEdit) if color ~="" then triggerServerEvent("setData",localPlayer,color) else outputChatBox("pls write any thing" end end end ) ------------Server addEvent("setData",true) addEventHandler("setData",root,function(color) --- لاتنسى التحقق * if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end ) addEventHandler("onPlayerChat", root,function ( ) local MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) if MsgColor then cancelEvent() local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source)..":"..MsgColor..""..message, root, red, green, blue, true ) else local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source).." :#ffffff" ..message, root, red, green, blue, true ) end end ) جرب مشكور ولكن, انت مسوي تحقق ولا اسوي انا تحقق ؟ Link to comment
iMr ~ MnHmAr Posted December 27, 2016 Share Posted December 27, 2016 (edited) Just now, Abu-Solo said: مشكور ولكن, انت مسوي تحقق ولا اسوي انا تحقق ؟ العفووو لا : ترى سهل حاول تسويه Edited December 27, 2016 by iMr ~ MnHmAr Link to comment
Abu-Solo Posted December 27, 2016 Author Share Posted December 27, 2016 (edited) 8 minutes ago, iMr ~ MnHmAr said: العفووو لا : ترى سهل حاول تسويه سويت تحقق, بس فيه مشكله. attempt to concatenate global 'message'(a nil value) outputChatBox(getPlayerName(source)..":"..MsgColor..""..message, root, red, green, blue, true ) الاكواد بعد التعديل, ---------Server addEvent("setData",true) addEventHandler("setData",root,function(color) if ( color == localPlayer) then if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end end ) addEventHandler("onPlayerChat", root,function ( ) local MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) if MsgColor then cancelEvent() local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source)..":"..MsgColor..""..message, root, red, green, blue, true ) else local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source).." :#ffffff" ..message, root, red, green, blue, true ) end end ) local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then outputChatBox("NO" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#ff0000亗#FFFFFF⌠#696969ϟ #00ffffconsole #696969ϟ#FFFFFF⌡#ff0000亗 :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console1")) then outputChatBox("#ff0000亗#FFFFFF⌠#696969ϟ #00ffffconsole1 #696969ϟ#FFFFFF⌡#ff0000亗 :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then outputChatBox("#F0E68C亗#ffffff╚#696969✘ #00ffffCrim#d2b48ciƝaL#ffffff™ #696969✘#ffffff╝#F0E68C亗 :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AssistantConsole")) then outputChatBox("#FFFFFF✱ ⌠» #96D8D4AssistantConsole #FFFFFF«⌡ ✱ :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("DevRoyale")) then outputChatBox(" #FFFF00✱⌠» #7FFFD4Dev-Royale #FFFF00«⌡✱ : ".. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Console")) then outputChatBox("#00ffff✱#cccccc ⌠» #00ffffDieputy #ffffffConsole #cccccc«⌡ #00ffff✱#cccccc :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Group-FaMiLy")) then outputChatBox("#FFB6C1✱#ADD8E6⌠ #FFB6C1فـــآمـــلـــي #ADD8E6حــــزب ⌡#FFB6C1✱ :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Managers")) then outputChatBox("#FF2D4C✱#cccccc⌠ #FF2D4CManager#C7D1D9s#cccccc ⌡#FF2D4C✱ :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then outputChatBox("#ADD8E6✱#cccccc⌠ #FFB6C1Manager#cccccc ⌡#ADD8E6✱ :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then outputChatBox("#c0ffc0✱⌠ #99ff00Manager#c0c0c0Acl#c0ffc0 ⌡✱ :" .. name .. ":"..MsgColor.."" ..text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SPECIALPRINCE")) then outputChatBox("#FEA883✱#cccccc【 #FEA883SPECIAL PRINCE #cccccc】#FEA883✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINSENIOR")) then outputChatBox("#ff0033✱【 #990033Senior Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PRINCEADMIN")) then outputChatBox("#ff0033✱【 #ffcc00PRINCE ADMIN #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINM7TRF")) then outputChatBox("#ff0033✱【 #333399ADMIN M7TRF #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINWZARH")) then outputChatBox("#ff0033✱【 #669999ADMIN WZARH #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINPOWER")) then outputChatBox("#ff0033✱【 #33ffffADMIN POWER #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KINGADMIN")) then outputChatBox("#ff0033✱【 #990000KING ADMIN #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminGeneral")) then outputChatBox("#ff0033✱【 #66ff66Admin General #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("POLICE-A7sas")) then outputChatBox("#ff0000♥#ffffff【#ff0000彡 #66ffffРŐĹĨČĔ-Á7ŚÁŚ #ff0000彡#ffffff】#ff0000♥:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("POLICE-MR.MAN")) then outputChatBox("#FFFFFF✱【#696969 Police-MR.MAN #FFFFFF】✱: #696969:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PrestegeGuard")) then outputChatBox("#D2691E✱【 #FFDEADPrestegeGuard#D2691E 】✱#FFFFFF: #FFDEAD#-:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminOfficial")) then outputChatBox("#ff0033✱【 #996600Admin Official #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("EmperorOfServer")) then outputChatBox("#ff0033✱【 #996633Emperor Of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminPrime")) then outputChatBox("#ff0033✱【 #cc6600Admin Prime #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminMonitor")) then outputChatBox("#ff0033✱【 #ccff33Admin Monitor #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Bigadmin")) then outputChatBox("#ff0033✱【 #000066Big admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingOfServer")) then outputChatBox("#ff0033✱【 #ffff00King Of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminBoss")) then outputChatBox("#ff0033✱【 #3366ffAdmin Boss #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("BestAdmin")) then outputChatBox("#ff0033✱【 #0000ffBest Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminPlus")) then outputChatBox("#ff0033✱【 #669999Admin Plus #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminTop")) then outputChatBox("#ff0033✱【 #33ffffAdmin Top #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vip-Admin")) then outputChatBox("#ff0033✱【 #990000V.I.P Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional")) then outputChatBox("#ff0033✱【 #333399Professional Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader")) then outputChatBox("#ff0033✱【 #ffcc00Leader Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince")) then outputChatBox("#ff0033✱【 #336666Prince of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("DE")) then outputChatBox("#ff0033✱【 #990033Speical Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#ff0033✱【 #00ff00Head Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then outputChatBox("#ff0033✱【 #660000Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#ff0033✱【 #ffcc00SuperModerator2 #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#ff0033✱【 #999900SuperModerator #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#ff0033✱【 #669999Moderator2 #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#ff0033✱【 #ff33ffModerator #】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VoteModerator")) then outputChatBox("#ff0033✱【 #660000VoteModerator #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("police")) then outputChatBox("#ff0033✱【 #663333Police #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VotePolice")) then outputChatBox("#ff0033✱【 #339933VotePolice #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#ff0033✱【 #666600V.I.P #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Time")) then outputChatBox("#ff0033✱【 #339933King Of Time #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-F")) then outputChatBox("#ffffff✱ x[ #000000 ادمن مـخالف #ffffff ]x :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#ff0033✱【 #ffffffEveryone #ff0033】✱ #ffffff:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) end function GRAND() outputChatBox ( "", source, 0, 0, 0, true ) end addEventHandler("onPlayerJoin", getRootElement(), GRAND) end addEventHandler("onPlayerChat", root, chatbox) Client WndColorX = guiCreateWindow(0.00, 0.28, 0.21, 0.29, "لوحة تغيير لون الشات الخاص بك", true) guiWindowSetSizable(WndColorX, false) guiSetProperty(WndColorX, "CaptionColour", "FFFFDD00") guiSetVisible(WndColorX,false) combox = guiCreateComboBox(0.03, 0.15, 0.94, 0.56, "", true, WndColorX) guiSetVisible(WndColorX,false) guiSetFont(combox, "default-bold-small") guiSetProperty(combox, "NormalEditTextColour", "FF00FEFC") guiComboBoxAddItem(combox, "-----------------------") guiComboBoxAddItem(combox, "لوحة تغيير لون الشات") guiComboBoxAddItem(combox, "-----------------------") lelelele = guiCreateLabel(0.03, 0.75, 0.93, 0.14, "قم بإختيار اللوحة المراد فتحها لك .", true, WndColorX) guiSetFont(lelelele, "default-bold-small") guiLabelSetColor(lelelele, 0, 254, 252) guiLabelSetHorizontalAlign(lelelele, "center", false) guiLabelSetVerticalAlign(lelelele, "center") ClickBTN = guiCreateButton(0.10, 0.58, 0.80, 0.10, "اختيار ", true, WndColorX) guiSetProperty(ClickBTN, "NormalTextColour", "FF00FBFE") ----------- local screenW, screenH = guiGetScreenSize() WndColor = guiCreateWindow((screenW - 188) / 2, (screenH - 171) / 2, 188, 171, "لوحة تغيير لون الشات الخاص بك", false) guiWindowSetSizable(WndColor, false) guiSetVisible(WndColor,false) ColorEdit = guiCreateEdit(0.05, 0.22, 0.87, 0.18, "", true, WndColor) guiEditSetMaxLength(ColorEdit, 7) ColorSetBTN = guiCreateButton(0.05, 0.46, 0.86, 0.18, "تغيير اللون #", true, WndColor) Close_BTn = guiCreateButton(0.05, 0.85, 0.32, 0.09, "X", true, WndColor) Deff = guiCreateLabel(0.07, 0.64, 0.85, 0.18, "قم بوضع كود اللون هنا #", true, WndColor) guiSetAlpha(Deff, 0.61) guiSetFont(Deff, "default-bold-small") guiLabelSetColor(Deff, 0, 254, 89) guiLabelSetHorizontalAlign(Deff, "center", false) guiLabelSetVerticalAlign(Deff, "center") open = function() guiSetVisible( WndColorX, not guiGetVisible( WndColorX ) ) showCursor( guiGetVisible( WndColorX ) ) end bindKey('M','down',open) addEventHandler("onClientGUIClick", root, function () if source == ClickBTN then local comboboxxx = guiComboBoxGetSelected(combox) if comboboxxx == 1 then guiSetVisible(WndColor,true) end end end ) addEventHandler("onClientRender",root,function() if guiGetVisible(WndColorX,false) then showCursor(true) end end ) addEventHandler("onClientGUIClick",root,function() if source == Close_BTn then guiSetVisible(WndColor,false) showCursor(false) elseif source == ColorSetBTN then local color = guiGetText(ColorEdit) if color ~="" then triggerServerEvent("setData",localPlayer,color) end end end ) Edited December 27, 2016 by Abu-Solo Link to comment
N3xT Posted December 27, 2016 Share Posted December 27, 2016 (edited) Server addEvent("setData",true) addEventHandler("setData",root, function(color) if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end ) function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) or "#FFFFFF" cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then outputChatBox("NO" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#ff0000亗#FFFFFF⌠#696969ϟ #00ffffconsole #696969ϟ#FFFFFF⌡#ff0000亗 :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console1")) then outputChatBox("#ff0000亗#FFFFFF⌠#696969ϟ #00ffffconsole1 #696969ϟ#FFFFFF⌡#ff0000亗 :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then outputChatBox("#F0E68C亗#ffffff╚#696969✘ #00ffffCrim#d2b48ciƝaL#ffffff™ #696969✘#ffffff╝#F0E68C亗 :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AssistantConsole")) then outputChatBox("#FFFFFF✱ ⌠» #96D8D4AssistantConsole #FFFFFF«⌡ ✱ :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("DevRoyale")) then outputChatBox(" #FFFF00✱⌠» #7FFFD4Dev-Royale #FFFF00«⌡✱ : ".. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Console")) then outputChatBox("#00ffff✱#cccccc ⌠» #00ffffDieputy #ffffffConsole #cccccc«⌡ #00ffff✱#cccccc :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Group-FaMiLy")) then outputChatBox("#FFB6C1✱#ADD8E6⌠ #FFB6C1فـــآمـــلـــي #ADD8E6حــــزب ⌡#FFB6C1✱ :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Managers")) then outputChatBox("#FF2D4C✱#cccccc⌠ #FF2D4CManager#C7D1D9s#cccccc ⌡#FF2D4C✱ :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then outputChatBox("#ADD8E6✱#cccccc⌠ #FFB6C1Manager#cccccc ⌡#ADD8E6✱ :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then outputChatBox("#c0ffc0✱⌠ #99ff00Manager#c0c0c0Acl#c0ffc0 ⌡✱ :" .. name .. ":"..MsgColor.."" ..text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SPECIALPRINCE")) then outputChatBox("#FEA883✱#cccccc【 #FEA883SPECIAL PRINCE #cccccc】#FEA883✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINSENIOR")) then outputChatBox("#ff0033✱【 #990033Senior Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PRINCEADMIN")) then outputChatBox("#ff0033✱【 #ffcc00PRINCE ADMIN #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINM7TRF")) then outputChatBox("#ff0033✱【 #333399ADMIN M7TRF #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINWZARH")) then outputChatBox("#ff0033✱【 #669999ADMIN WZARH #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINPOWER")) then outputChatBox("#ff0033✱【 #33ffffADMIN POWER #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KINGADMIN")) then outputChatBox("#ff0033✱【 #990000KING ADMIN #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminGeneral")) then outputChatBox("#ff0033✱【 #66ff66Admin General #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("POLICE-A7sas")) then outputChatBox("#ff0000♥#ffffff【#ff0000彡 #66ffffРŐĹĨČĔ-Á7ŚÁŚ #ff0000彡#ffffff】#ff0000♥:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("POLICE-MR.MAN")) then outputChatBox("#FFFFFF✱【#696969 Police-MR.MAN #FFFFFF】✱: #696969:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PrestegeGuard")) then outputChatBox("#D2691E✱【 #FFDEADPrestegeGuard#D2691E 】✱#FFFFFF: #FFDEAD#-:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminOfficial")) then outputChatBox("#ff0033✱【 #996600Admin Official #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("EmperorOfServer")) then outputChatBox("#ff0033✱【 #996633Emperor Of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminPrime")) then outputChatBox("#ff0033✱【 #cc6600Admin Prime #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminMonitor")) then outputChatBox("#ff0033✱【 #ccff33Admin Monitor #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Bigadmin")) then outputChatBox("#ff0033✱【 #000066Big admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingOfServer")) then outputChatBox("#ff0033✱【 #ffff00King Of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminBoss")) then outputChatBox("#ff0033✱【 #3366ffAdmin Boss #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("BestAdmin")) then outputChatBox("#ff0033✱【 #0000ffBest Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminPlus")) then outputChatBox("#ff0033✱【 #669999Admin Plus #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminTop")) then outputChatBox("#ff0033✱【 #33ffffAdmin Top #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vip-Admin")) then outputChatBox("#ff0033✱【 #990000V.I.P Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional")) then outputChatBox("#ff0033✱【 #333399Professional Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader")) then outputChatBox("#ff0033✱【 #ffcc00Leader Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince")) then outputChatBox("#ff0033✱【 #336666Prince of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("DE")) then outputChatBox("#ff0033✱【 #990033Speical Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#ff0033✱【 #00ff00Head Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then outputChatBox("#ff0033✱【 #660000Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#ff0033✱【 #ffcc00SuperModerator2 #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#ff0033✱【 #999900SuperModerator #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#ff0033✱【 #669999Moderator2 #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#ff0033✱【 #ff33ffModerator #】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VoteModerator")) then outputChatBox("#ff0033✱【 #660000VoteModerator #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("police")) then outputChatBox("#ff0033✱【 #663333Police #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VotePolice")) then outputChatBox("#ff0033✱【 #339933VotePolice #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#ff0033✱【 #666600V.I.P #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Time")) then outputChatBox("#ff0033✱【 #339933King Of Time #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-F")) then outputChatBox("#ffffff✱ x[ #000000 ادمن مـخالف #ffffff ]x :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#ff0033✱【 #ffffffEveryone #ff0033】✱ #ffffff:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) Edited December 27, 2016 by N3xT 1 Link to comment
Abu-Solo Posted December 27, 2016 Author Share Posted December 27, 2016 12 minutes ago, N3xT said: Serve addEvent("setData",true)addEventHandler("setData",root, function(color) if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData( getPlayerAccount(source),"colortag",color) else outputChatBox("you must login frist",source) end end)function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local MsgColor = getAccountData ( getPlayerAccount(source), "colortag" ) or "#FFFFFF" cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then outputChatBox("NO" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#ff0000亗#FFFFFF⌠#696969ϟ #00ffffconsole #696969ϟ#FFFFFF⌡#ff0000亗 :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console1")) then outputChatBox("#ff0000亗#FFFFFF⌠#696969ϟ #00ffffconsole1 #696969ϟ#FFFFFF⌡#ff0000亗 :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then outputChatBox("#F0E68C亗#ffffff╚#696969✘ #00ffffCrim#d2b48ciƝaL#ffffff™ #696969✘#ffffff╝#F0E68C亗 :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AssistantConsole")) then outputChatBox("#FFFFFF✱ ⌠» #96D8D4AssistantConsole #FFFFFF«⌡ ✱ :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("DevRoyale")) then outputChatBox(" #FFFF00✱⌠» #7FFFD4Dev-Royale #FFFF00«⌡✱ : ".. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Console")) then outputChatBox("#00ffff✱#cccccc ⌠» #00ffffDieputy #ffffffConsole #cccccc«⌡ #00ffff✱#cccccc :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Group-FaMiLy")) then outputChatBox("#FFB6C1✱#ADD8E6⌠ #FFB6C1فـــآمـــلـــي #ADD8E6حــــزب ⌡#FFB6C1✱ :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Managers")) then outputChatBox("#FF2D4C✱#cccccc⌠ #FF2D4CManager#C7D1D9s#cccccc ⌡#FF2D4C✱ :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then outputChatBox("#ADD8E6✱#cccccc⌠ #FFB6C1Manager#cccccc ⌡#ADD8E6✱ :#cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then outputChatBox("#c0ffc0✱⌠ #99ff00Manager#c0c0c0Acl#c0ffc0 ⌡✱ :" .. name .. ":"..MsgColor.."" ..text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SPECIALPRINCE")) then outputChatBox("#FEA883✱#cccccc【 #FEA883SPECIAL PRINCE #cccccc】#FEA883✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINSENIOR")) then outputChatBox("#ff0033✱【 #990033Senior Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PRINCEADMIN")) then outputChatBox("#ff0033✱【 #ffcc00PRINCE ADMIN #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINM7TRF")) then outputChatBox("#ff0033✱【 #333399ADMIN M7TRF #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINWZARH")) then outputChatBox("#ff0033✱【 #669999ADMIN WZARH #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMINPOWER")) then outputChatBox("#ff0033✱【 #33ffffADMIN POWER #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KINGADMIN")) then outputChatBox("#ff0033✱【 #990000KING ADMIN #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminGeneral")) then outputChatBox("#ff0033✱【 #66ff66Admin General #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("POLICE-A7sas")) then outputChatBox("#ff0000♥#ffffff【#ff0000彡 #66ffffРŐĹĨČĔ-Á7ŚÁŚ #ff0000彡#ffffff】#ff0000♥:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("POLICE-MR.MAN")) then outputChatBox("#FFFFFF✱【#696969 Police-MR.MAN #FFFFFF】✱: #696969:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PrestegeGuard")) then outputChatBox("#D2691E✱【 #FFDEADPrestegeGuard#D2691E 】✱#FFFFFF: #FFDEAD#-:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminOfficial")) then outputChatBox("#ff0033✱【 #996600Admin Official #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("EmperorOfServer")) then outputChatBox("#ff0033✱【 #996633Emperor Of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminPrime")) then outputChatBox("#ff0033✱【 #cc6600Admin Prime #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminMonitor")) then outputChatBox("#ff0033✱【 #ccff33Admin Monitor #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Bigadmin")) then outputChatBox("#ff0033✱【 #000066Big admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingOfServer")) then outputChatBox("#ff0033✱【 #ffff00King Of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminBoss")) then outputChatBox("#ff0033✱【 #3366ffAdmin Boss #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("BestAdmin")) then outputChatBox("#ff0033✱【 #0000ffBest Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminPlus")) then outputChatBox("#ff0033✱【 #669999Admin Plus #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("AdminTop")) then outputChatBox("#ff0033✱【 #33ffffAdmin Top #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vip-Admin")) then outputChatBox("#ff0033✱【 #990000V.I.P Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional")) then outputChatBox("#ff0033✱【 #333399Professional Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader")) then outputChatBox("#ff0033✱【 #ffcc00Leader Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince")) then outputChatBox("#ff0033✱【 #336666Prince of Server #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("DE")) then outputChatBox("#ff0033✱【 #990033Speical Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then outputChatBox("#ff0033✱【 #00ff00Head Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then outputChatBox("#ff0033✱【 #660000Admin #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then outputChatBox("#ff0033✱【 #ffcc00SuperModerator2 #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#ff0033✱【 #999900SuperModerator #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then outputChatBox("#ff0033✱【 #669999Moderator2 #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#ff0033✱【 #ff33ffModerator #】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VoteModerator")) then outputChatBox("#ff0033✱【 #660000VoteModerator #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("police")) then outputChatBox("#ff0033✱【 #663333Police #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VotePolice")) then outputChatBox("#ff0033✱【 #339933VotePolice #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then outputChatBox("#ff0033✱【 #666600V.I.P #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Time")) then outputChatBox("#ff0033✱【 #339933King Of Time #ff0033】✱ #cccccc" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin-F")) then outputChatBox("#ffffff✱ x[ #000000 ادمن مـخالف #ffffff ]x :" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#ff0033✱【 #ffffffEveryone #ff0033】✱ #ffffff:" .. name .. ":"..MsgColor.."" .. text, root, 255, 255, 255, true) endendaddEventHandler("onPlayerChat", root, chatbox) الف الف شكر يعطيكم كلكم العافية @N3xT @iMr ~ MnHmAr ولكن فيه شئ بسيط, عندي مود التاجات اللي تقدر تغير التاج حق اللاعب عن طريقة السريال ابغي اعرف كيف اخلي اللون يتغير مع السريال حقه Link to comment
MR.GRAND Posted December 28, 2016 Share Posted December 28, 2016 22 hours ago, Abu-Solo said: الف الف شكر يعطيكم كلكم العافية @N3xT @iMr ~ MnHmAr ولكن فيه شئ بسيط, عندي مود التاجات اللي تقدر تغير التاج حق اللاعب عن طريقة السريال ابغي اعرف كيف اخلي اللون يتغير مع السريال حقه اذا تقصد طريقة الحفظ فهي عن طريق SQL لازم تضيف ارقمنت جديد للجدول وتحط فيه لون الرسالة ^ لما يغيره من مود التغيير ... يسوي داتا لحسابه + يتحقق لو معه تاجات خاصة كمان يحدث قيمة اللون . 1 Link to comment
Abu-Solo Posted December 28, 2016 Author Share Posted December 28, 2016 33 minutes ago, MR.GRAND said: اذا تقصد طريقة الحفظ فهي عن طريق SQL لازم تضيف ارقمنت جديد للجدول وتحط فيه لون الرسالة ^ لما يغيره من مود التغيير ... يسوي داتا لحسابه + يتحقق لو معه تاجات خاصة كمان يحدث قيمة اللون . مشكور, يعطيك العافية تمت الافادة 1 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