جرب ضيفه لقروب الادمن؟
وجرب كذآ ,
لازم تكون بقروب كونسل او ادمن او عبودي اونلي !!
Client :
local getAdmin = getPlayerName(localPlayer)
function rdx(message)
removeEventHandler ( "onClientRender", getRootElement(), dx )
function dx()
dxDrawText("Admin: "..getAdmin..":",13.0,167.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false)
dxDrawText(tostring(message),58.0,168.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false)
end
addEventHandler("onClientRender", getRootElement(), dx)
end
addEvent("3azef", true )
addEventHandler("3azef", getRootElement(), rdx)
bindKey("u", "down", "chatbox","Admin")
Server :
function check(thePlayer, commandName,...)
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "abodi-only" ) ) then
local veve = {...}
local message = table.concat(veve, " ")
triggerClientEvent("3azef", getRootElement(),message)
end
end
addCommandHandler("Admin", check)