Jump to content

ممكن مساعدة في مود رسالة الادمن . .


Recommended Posts

ممكن المساعدة: هذ المود مود رسالة الادمن تحت الشات المشكلة اذا احد خرج ودخل الكلام يروح بدي مساعدة في انه احد يسويله كود يحفظ الرسالة اذا احد خرج ودخل يشوف الرسالة مرة ثانية يعني الرسالة اذا احد كتبها في الادمن تضل الرسالة محفوظة حتى لو احد خرج ودخل ياريت تساعدوني وشكراً

Client.lua 
  
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","AM") 

------------------------------------------------------

Server.lua 
  
function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        triggerClientEvent("sora", getRootElement(),message) 
    end 
end 
addCommandHandler("AM", check) 

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...