function rdx(message)
removeEventHandler ( "onClientRender", getRootElement(), dx )
function dx()
dxDrawText("Admin :",13.0,167.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false)
dxDrawText(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("Sora", true )
addEventHandler("Sora", getRootElement(), rdx)
bindKey("u", "down", "chatbox","Admin")
function check(thePlayer, commandName,...)
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then
local veve = {...}
local message = table.concat(veve, " ")
triggerClientEvent("Sora", getRootElement(),message)
end
end
addCommandHandler("Admin", check)
مثال للمود العاجل حق سورا