التاج مع الكود ..
local root = getRootElement()
function chatbox(text, msgtype)
local account = getAccountName(getPlayerAccount(source))
local name = getPlayerName(source)
cancelEvent()
if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then
outputChatBox("#FF0000* [ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then
outputChatBox("#999999 * [ Police ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("admint")) then
outputChatBox("#993333* [ مسؤل الادمنيات ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin2")) then
outputChatBox("#dd0000* [ Scripter ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("WorkShop")) then
outputChatBox("#A23BEC* [ WorkShop ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Vote")) then
outputChatBox("#7F5A58* [ Voted To Mod ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then
outputChatBox("#C11B17* [ Owner ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("كموره")) then
outputChatBox("#C11B17* [ Head Admin ] #FF0000❤彡●【#00BBFFالاسطوره كموره#FF0000】●彡❤ : #ffFFff"..text , getRootElement(), 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("نايف")) then
outputChatBox("#ff8756* 彡 [ Owner Server 6AraT ] 彡 نـآيف : #ffFFff"..text , getRootElement(), 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then
outputChatBox("#1D9C00* [ SuperModerator 1 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator2")) then
outputChatBox("#259117* [ SuperModerator 2 ] " .. name ..":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then
outputChatBox("#0044ff* [ Moderator 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator2")) then
outputChatBox("#2554C7* [ Moderator 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then
outputChatBox("#C8BBBE* [ V.I.P ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("7Rame")) then
outputChatBox("#52F3FF* [ Gang member ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then
outputChatBox("#C11B17* [ Head Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then
outputChatBox("#444444* [ Big.Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("KingDrift")) then
outputChatBox("#D4A017* [ King Of Drift ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then
outputChatBox("#717D7D* [ #FFFFFF#ff0000" .. name .. "#717D7D ] :#ffffff " .. text, root, 255, 255, 255, true)
end
addEventHandler("onPlayerJoin", getRootElement(), s3d)
end
addEventHandler("onPlayerChat", root, chatbox)
local Words = {
"removed - Tete, Reason: insults"
};
addEventHandler ( "onPlayerChat", root,
function ( msg, type )
for _, v in ipairs ( Words ) do
if string.find ( msg, v ) then
cancelEvent ( );
return outputChatBox ( '#717D7D* [#FF0000 '..getPlayerName( source )..'#717D7D ] :#FFFFFF لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شئ قدير', root, 255, 0, 0, true );
end
end
end
);