Jump to content

?لاق


z24d

Recommended Posts

السلام عليكم انا اذا طلعت رسالة بالمود هذا يجيب لي لاق شنيييععع

مع انه كمبيوتري كويس ويشغل اللعبة علا 100 فريم لاكن اذا جت رسالة يقلل مره

function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded, frameColor ) 
    if ( ColorCoded == true ) then 
        message1 = string.gsub( message, "#%x%x%x%x%x%x", "" ) 
        message2 = message 
    else 
        message1 = message 
        message2 = message 
    end 
    local color = color or tocolor(255, 255, 255, 255) 
    local frameColor = frameColor or tocolor(0, 0, 0, 255) 
    local scale = scale or 1.1 
    local font = font or "default" 
    local alignX = alignX or "left" 
    local alignY = alignY or "top" 
    local clip = clip or false 
    local wordBreak = wordBreak or false 
    postGUI = postGUI or false 
    dxDrawText( message1, left + 1, top + 1, width + 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) 
    dxDrawText( message1, left + 1, top - 1, width + 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) 
    dxDrawText( message1, left - 1, top + 1, width - 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) 
    dxDrawText( message1, left - 1, top - 1, width - 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) 
    dxDrawText( message2, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded ) 
end 
  
local x, y = guiGetScreenSize() 
local Rows = {} 
local R = 0 
  
function outputClient(text, r, g, b) 
    local r = r or 255 
    local g = g or 255 
    local b = b or 255 
    local color = tocolor(r, g, b, 255) 
    R = R + 17 
    table.insert(Rows, {text, color, R}) 
    setTimer(function() 
        setTimer(function() 
            if R > 0 then 
                R = R - 1 
                for i, row in pairs(Rows) do 
                    Rows[i] = {row[1], row[2], row[3] - 1.0} 
                    if row[3] <= 0 then 
                        table.remove(Rows, i) 
                    end 
                end 
            end 
        end, 50, 17) 
    end, 10000, 1) 
end 
addEvent("calloutputClient", true) 
addEventHandler("calloutputClient", root, outputClient) 
  
function drawRows() 
    dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 162), false) 
    for i, row in pairs(Rows) do 
        dxDrawFramedText(row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.1, "default-bold", "center", "top", true, false, false, true, true) 
    end 
end 
addEventHandler("onClientPreRender", root, drawRows) 
  

Link to comment
    function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded, frameColor ) 
        if ( ColorCoded == true ) then 
            message1 = string.gsub( message, "#%x%x%x%x%x%x", "" ) 
            message2 = message 
        else 
            message1 = message 
            message2 = message 
        end 
        local color = color or tocolor(255, 255, 255, 255) 
        local frameColor = frameColor or tocolor(0, 0, 0, 255) 
        local scale = scale or 1.1 
        local font = font or "default" 
        local alignX = alignX or "left" 
        local alignY = alignY or "top" 
        local clip = clip or false 
        local wordBreak = wordBreak or false 
        postGUI = postGUI or false 
        dxDrawText( message1, left + 1, top + 1, width + 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) 
        dxDrawText( message1, left + 1, top - 1, width + 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) 
        dxDrawText( message1, left - 1, top + 1, width - 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) 
        dxDrawText( message1, left - 1, top - 1, width - 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) 
        dxDrawText( message2, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded ) 
    end 
      
    local x, y = guiGetScreenSize() 
    local Rows = {} 
    local R = 0 
      
    function outputClient(text, r, g, b) 
        local r = r or 255 
        local g = g or 255 
        local b = b or 255 
        local color = tocolor(r, g, b, 255) 
        R = R + 17 
        table.insert(Rows, {text, color, R}) 
        setTimer(function() 
            setTimer(function() 
                if R > 0 then 
                    R = R - 1 
                    for i, row in pairs(Rows) do 
                        Rows[i] = {row[1], row[2], row[3] - 1.0} 
                        if row[3] <= 0 then 
                            table.remove(Rows, i) 
                        end 
                    end 
                end 
            end, 50, 17) 
        end, 10000, 1) 
    end 
    addEvent("calloutputClient", true) 
    addEventHandler("calloutputClient", root, outputClient) 
      
    function drawRows() 
        dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 162), false) 
        for i, row in pairs(Rows) do 
            dxDrawFramedText( row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.1, "default-bold", "center", "top", true, false, false, true, tocolor( 0, 0, 0, 255 ) ) 
        end 
    end 
    addEventHandler("onClientPreRender", root, drawRows) 
      

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