--- سيرفر
local root = getRootElement()
function chatbox(text, msgtype)
local account = getAccountName(getPlayerAccount(source))
local name = getPlayerName(source)
if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242Console#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Devlpor")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242Developer1#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("HeadAdmin")) then
cancelEvent()
outputChatBox("#bd1c18* [ #FE2E2EHeadAdmin#bd1c18 ] " .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader")) then
cancelEvent()
outputChatBox("#bd1c18* [ #FE2E2ELeader#bd1c18 ] " .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_1")) then
cancelEvent()
outputChatBox("#bd1c18* [ #04B4AELevel 1#bd1c18 ] #04B4AE" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_2")) then
cancelEvent()
outputChatBox("#bd1c18* [ #8A0868Level 2#bd1c18 ] #8A0868" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_3")) then
cancelEvent()
outputChatBox("#bd1c18* [ #298A08Level 3#bd1c18 ] #298A08" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_4")) then
cancelEvent()
outputChatBox("#bd1c18* [ #B18904Level 4#bd1c18 ] #B18904" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_5")) then
cancelEvent()
outputChatBox("#bd1c18* [ #8A0808Level 5#bd1c18 ] #8A0808" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Ex")) then
cancelEvent()
outputChatBox("#9c9a9c[ Admin - Ex ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head-Leader")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242Head-Leader#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuPeR-admin")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242SuPeR-admin#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("BIG-ADMIN")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242BIG-ADMIN#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("GA-1")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242GA-1#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("GA-2")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242GA-2#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("GM-1")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242GM-1#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("GM-2")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242GM-2#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("SUPPORT")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242SUPPORT#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("ServerOwner")) then
cancelEvent()
outputChatBox("#bd1c18* [ #424242ServerOwner#bd1c28 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true)
end
end
addEventHandler("onPlayerChat", root, chatbox)
الاسل انت عدله لاني والله ماني فاضي . . .
التحميل --
--client
addEventHandler( "onClientResourceStart", resourceRoot, function( )
TimerDownload = setTimer( function( )
if ( isTransferBoxActive ( ) ~= true ) then
setElementData( localPlayer, "download", false )
killTimer( TimerDownload )
end
end, 10000, 0 )
end )
--server
addEventHandler( "onPlayerJoin", root, function( )
setElementData( source, "download", "Download" )
end )