-.Paradox.- Posted October 15, 2013 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?
MTA Team qaisjp Posted October 15, 2013 MTA Team Posted October 15, 2013 spawnPlayer addEventHandler dxDrawText bindKey unbindKey
-.Paradox.- Posted October 18, 2013 Author 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?
Desaster Posted October 18, 2013 Posted October 18, 2013 addEventHandler removeEventHandler onClientRender setTimer dxDrawText
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