Jump to content

سلام، بدي لما اكتب كلمه في اف8 ينقفل العاجل ولا احد يقدر يكتب فيه حتى لو كنت انا كلمه تكتبها في اف8 وشكرا لكم وبدي لما تكتب الكلمه لى تقفل العاجل بضل لى كتبتها مثال انت كتبت حياكم الله وقفلت العاجل بضل كلمة حياكم الله ولا احد يقدر يكتب وشكرا مره ثانيه


Recommended Posts

--كلينت
local sX, sY = guiGetScreenSize ()

addEventHandler("onClientRender", root, function ()
    if ( getElementData ( resourceRoot, "Have_" ) == true ) then
        local Lines = getChatboxLayout ()["chat_lines"]
        if ( Lines <= 10 ) then
            Lines = Lines + 1
        elseif ( Lines >= 20 ) then
            Lines = Lines - 1
        else
            Lines = Lines
        end
        if ( getElementData ( resourceRoot, "Msg_" ) == "delete" ) then
            setElementData ( resourceRoot, "Have_", false )
        else
         dxDrawBorderedText ( "#1a75ff Admin : #FFFFFF" .. getElementData ( resourceRoot, "Msg_" ).. "", 20, 200, 300, 300, tocolor(255, 255, 255, 255), 1.0, "default-bold", "left", "top", true, false, true, true, false)
         dxDrawBorderedText ( "".. getElementData ( resourceRoot, "By_" ) .."", 20, 219, 300, 300, tocolor(255, 255, 255, 255), 1.0, "default-bold", "left", "top", false, false, false, false, false)
        end
    end
end)
bindKey("u", "down", "chatbox","IM")

function dxDrawBorderedText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, color2 )
    local wh = 1
    local msg_gsub = text:gsub ( '#%x%x%x%x%x%x', '' )
    dxDrawText ( msg_gsub, x - wh, y - wh, w - wh, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true ) -- black
    dxDrawText ( msg_gsub, x + wh, y - wh, w + wh, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true )
    dxDrawText ( msg_gsub, x - wh, y + wh, w - wh, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true )
    dxDrawText ( msg_gsub, x + wh, y + wh, w + wh, h + wh, tocolor ( 0, 0, 0, 0  ), scale, font, alignX, alignY, clip, wordBreak, true )
    dxDrawText ( msg_gsub, x - wh, y, w - wh, h, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, true )
    dxDrawText ( msg_gsub, x + wh, y, w + wh, h, tocolor ( 0, 0, 0, 0  ), scale, font, alignX, alignY, clip, wordBreak, true )
    dxDrawText ( msg_gsub, x, y - wh, w, h - wh, tocolor ( 0, 0, 0, 0  ), scale, font, alignX, alignY, clip, wordBreak, true )
    dxDrawText ( msg_gsub, x, y + wh, w, h + wh, tocolor ( 0, 0, 0, 0  ), scale, font, alignX, alignY, clip, wordBreak, true )
    dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, color2 )
end
--سيرفر
local Groups = { "Console", "AL-3GeD" }

function isPlayerAdmin(player)
    for k,v in ipairs ( Groups ) do
        if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(v)) ) then
            return true
        end
    end
end

addCommandHandler("IM", function ( player, cmd, ... )
    if not ( isGuestAccount ( getPlayerAccount ( player ) ) ) then
        if ( isPlayerAdmin ( player ) ) then
            local msg = {...}
            local message = table.concat(msg, " ")
            setElementData ( resourceRoot, "Have_", true )
            setElementData ( resourceRoot, "Msg_", message )
            if ( getElementData ( player, "Name" ) and getElementData ( player, "Name" ) ~= false ) then
                setElementData ( resourceRoot, "By_", getElementData ( player, "Name" ))
            else
                setElementData ( resourceRoot, "By_", getPlayerName ( player ))
            end
        else
        end
    else
    end
end)

 

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...