السلآم عليكم ورحمة الله
دامكم بخير,,
طلبي بسيط مثل عنوانه
بس أنا سويت العاجل ما زبط
أبي بعد كلمة أدمن يجي أسم الأدمن اللي كتب العاجل
-- Server side
function check(thePlayer, commandName,...)
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) and isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) and isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "abodi-only" ) ) then
local veve = {...}
local message = table.concat(veve, " ")
local getAdmin = getPlayerName(source)
triggerClientEvent("sora", getRootElement(),message)
end
end
addCommandHandler("Admin", check)
-- Client side
function rdx(message)
removeEventHandler ( "onClientRender", getRootElement(), dx )
function dx(source)
dxDrawText("Admin" .. getAdmin(source) .. ":",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("3azef", true )
addEventHandler("3azef", getRootElement(), rdx)
bindKey("u", "down", "chatbox","Admin")
أنا أدري أنه من حقوق سورا
بس حاب أعدل عليه تعديل بسيييط جداً
Admin تجيب أسم اللاعب بعد كلمة