Jump to content

DxDrawText


-.Paradox.-

Recommended Posts

Posted

Hello, i want when player die it show a dxText 'Press F4 to respawn' and when player press F4 it disappear can somebody give me some useful functions?

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted
addEventHandler( "onPlayerWasted", root, 
function (source, thePlayer) 
        textDisplay = textCreateDisplay ( ) 
        outputChatBox ( "Press F4 To Respawn ", root, 255, 255, 255 ) 
        textItem = textCreateTextItem ( "Press F4 To Respawn", 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center" ) 
        textDisplayAddText ( textDisplay, textItem ) 
        for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do 
            textDisplayAddObserver ( textDisplay, thePlayer ) 
        end 
        setTimer ( 
            function ( ) 
                textDestroyTextItem ( textItem ) 
                textDestroyDisplay ( textDisplay ) 
            end 
            ,5000, 1 
            ) 
end) 

I tried this but not working?

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

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