-.Paradox.- Posted October 15, 2013 Share Posted October 15, 2013 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? Link to comment
qaisjp Posted October 15, 2013 Share Posted October 15, 2013 spawnPlayer addEventHandler dxDrawText bindKey unbindKey Link to comment
-.Paradox.- Posted October 18, 2013 Author Share Posted October 18, 2013 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? Link to comment
Desaster Posted October 18, 2013 Share Posted October 18, 2013 addEventHandler removeEventHandler onClientRender setTimer dxDrawText Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now