0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function chatbox( text, type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF #000000▄▀▄▀▄ #990000Kurucu#000000 ▄▀▄▀▄#99FFFF " .. getPlayerName ( source ) .. ":#0099FF " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [kurucu] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000 [!] #ffffff Server Yöneticisi - #009966 " .. getPlayerName ( source ) ..":#FF9900 " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Mod] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFFFFF #000000˙·٠•●●•٠·#00FF00Smod#000000·٠•●●•٠·˙#99FFFF " .. getPlayerName ( source ) ..":#00FF33 " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Smod] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000 [!] #ffffff Destek - #009966 " .. getPlayerName ( source ) ..":#FF9900 " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Mod] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#00EE00 ۩#FFFFFF✤#00EE00۩ #FF0000[MAKT]#FFFFFF #00EE00۩#FFFFFF✤#00EE00۩ #FFFFFF " .. getPlayerName ( source ) ..":#CDCDCD " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Uye] " .. getPlayerName ( source ) .. ": " .. text) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( " " .. getPlayerName ( source ) .. ":#FF6633 " .. text, getRootElement(), r, g, b, true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) endendaddEventHandler("onPlayerChat", getRootElement(), chatbox)
function chatbox(text, tip) cancelEvent() local hesapisim = getAccountName(getPlayerAccount(source)) local r, g, b = getPlayerNametagColor(source) local isim = getPlayerName ( source ) if tip == 0 then if isObjectInACLGroup("user." ..hesapisim, aclGetGroup("Console")) then outputChatBox("#FFFFFF #000000▄▀▄▀▄ #990000Kurucu#000000 ▄▀▄▀▄#99FFFF " ..isim.. ":#0099FF " .. text, root, r, g, b, true ) outputServerLog("CHAT: [kurucu] " ..isim.. ": " .. text) elseif isObjectInACLGroup("user." ..hesapisim, aclGetGroup("Admin")) then outputChatBox("#FF0000 [!] #ffffff Server Yöneticisi - #009966 " ..isim..":#FF9900 " .. text, root, r, g, b, true ) outputServerLog("CHAT: [Mod] " ..isim.. ": " .. text) elseif isObjectInACLGroup("user." ..hesapisim, aclGetGroup("SuperModerator")) then outputChatBox("#FFFFFF #000000˙·٠•●●•٠·#00FF00Smod#000000·٠•●●•٠·˙#99FFFF " ..isim..":#00FF33 " .. text, root, r, g, b, true ) outputServerLog("CHAT: [Smod] " ..isim.. ": " .. text) elseif isObjectInACLGroup("user." ..hesapisim, aclGetGroup("Moderator")) then outputChatBox("#FF0000 [!] #ffffff Destek - #009966 " ..isim..":#FF9900 " .. text, root, r, g, b, true ) outputServerLog("CHAT: [Mod] " ..isim.. ": " .. text) elseif isObjectInACLGroup("user." ..hesapisim, aclGetGroup("Everyone")) then outputChatBox("#00EE00 ۩#FFFFFF✤#00EE00۩ #FF0000[MAKT]#FFFFFF #00EE00۩#FFFFFF✤#00EE00۩ #FFFFFF " ..isim..":#CDCDCD " .. text, root, r, g, b, true ) outputServerLog("CHAT: [Uye] " ..isim.. ": " .. text) else outputChatBox ( " " ..isim.. ":#FF6633 " .. text, root, r, g, b, true ) outputServerLog( "CHAT: " ..isim.. ": " .. text ) end elseif tip == 2 then local takim = getPlayerTeam(source) if takim then local takimisim = getTeamName(takim) for i,takimo in pairs(getPlayersInTeam(takim)) do outputChatBox ("("..takimisim..") " ..isim.. ":#FF6633 " .. text, takimo, r, g, b, true ) end end endendaddEventHandler("onPlayerChat", getRootElement(), chatbox)