Jump to content

Shoutout


Recommended Posts

-- Here is what it will basicly look like, but it needs a little work.

Server:

addCommandHandler("shout", 
    function ( player, command, text1 ) 
        -- You'll need to edit it, so you can do more then just one word. 
        if ( text1 ) then 
            triggerClientEvent(root, "onPlayerShout", root, text1 ) 
        end 
    end 
) 

Client:

text = "" 
function onPlayerShout ( text ) 
    if ( text ) then 
        text = text 
        addEventHandler("onClientRender", root, dx ) 
    else 
        return 
    end 
end 
addEvent("onPlayerShout", true) 
addEventHandler ( "onPlayerShout", root, onPlayerShout ) 
  
function dx ( ) 
    local rx, ry = guiGetScreenSize() 
    dxDrawText(text, 0, 0, rx, ry, tocolor( 255, 255, 255, 255 ), 3, "default", "center", "center") 
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...