//_Dragon Posted December 23, 2015 Share Posted December 23, 2015 It's possible to draw text on screen player ? like dxdraw3D I want make it in my script time = {} function Countdown (player, cmd) if isTimer(time[player]) then return end time[player] = setTimer(function() time[player] = nil end,30000,1) local name = getPlayerName(player) local r,g,b = getPlayerNametagColor (player) local accountname = getAccountName (getPlayerAccount(player)) outputChatBox ( "" .. name .. ": #FF9600 Starts the Countdown !", getRootElement(), r, g, b, true ) outputChatBox ( "#FF0000 ===3===", getRootElement(), 255, 255, 255, true ) triggerClientEvent("triggerclientforGridCountdown", getRootElement()) setTimer ( Countdown5, 1000, 1 ) end function Countdown5 ( root ) outputChatBox ( "#FF0000 ===2===", getRootElement(), 255, 255, 255, true ) setTimer ( Countdown4, 1000, 1 ) end function Countdown4 ( root ) outputChatBox ( "#FF0000 ===1===", getRootElement(), 255, 255, 255, true ) setTimer ( Countdown3, 1000, 1 ) end function Countdown3 ( root ) outputChatBox ( "#FF0000 Go Go Go!!!", getRootElement(), 255, 255, 255, true ) setTimer ( Countdown2, 1000, 1 ) end addCommandHandler( "cd", Countdown ) Link to comment
Addlibs Posted December 23, 2015 Share Posted December 23, 2015 Seriously do some research before asking for help. The community won't help you with every single script for your (allegedly cloned) server. Link to comment
//_Dragon Posted December 23, 2015 Author Share Posted December 23, 2015 First i'm not cloning server , i'm just new scripter & i wanna make my mods better I just need help for drawing text on 3D ( screen player ) !!! Link to comment
Addlibs Posted December 23, 2015 Share Posted December 23, 2015 http://www.catb.org/esr/faqs/smart-questions.html Link to comment
//_Dragon Posted December 23, 2015 Author Share Posted December 23, 2015 Dude i try found something to change drawing text But i didn't find Link to comment
//_Dragon Posted December 23, 2015 Author Share Posted December 23, 2015 I make this script , but it's showing Only ==3== other text no + debugscript : http://imgur.com/Q76Wago function Countdown (player, cmd) local name = getPlayerName(player) local r,g,b = getPlayerNametagColor (player) textDisplay = textCreateDisplay ( ) local accountname = getAccountName (getPlayerAccount(player)) textItem = textCreateTextItem ( "" .. name .. "", 0.5, 0.5, 2, 225, 0, 0, 255, 4, "center", "center", 50 ) textItem = textCreateTextItem ("===3===", 0.5, 0.5, 2, 225, 0, 0, 255, 4, "center", "center", 50 ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) setTimer ( function ( ) textDestroyTextItem ( textItem ) textDestroyDisplay ( textDisplay ) end ,1000, 1 ) triggerClientEvent("triggerclientforGridCountdown", getRootElement()) end setTimer ( Countdown5, 1000, 1 ) end function Countdown5 ( root ) end textItem = textCreateTextItem ("===2===", 0.5, 0.5, 2, 225, 0, 0, 255, 4, "center", "center", 50 ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) setTimer ( function ( ) textDestroyTextItem ( textItem ) textDestroyDisplay ( textDisplay ) end ,1000, 1 ) end function Countdown4 ( root ) end textItem = textCreateTextItem ("===1===", 0.5, 0.5, 2, 225, 0, 0, 255, 4, "center", "center", 50 ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) setTimer ( function ( ) textDestroyTextItem ( textItem ) textDestroyDisplay ( textDisplay ) end ,1000, 1 ) end function Countdown3 ( root ) end textItem = textCreateTextItem ("GO", 0.5, 0.5, 2, 225, 0, 0, 255, 4, "center", "center", 50 ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) setTimer ( function ( ) textDestroyTextItem ( textItem ) textDestroyDisplay ( textDisplay ) end ,1000, 1 ) end addCommandHandler( "cd", Countdown ) Link to comment
//_Dragon Posted December 24, 2015 Author Share Posted December 24, 2015 ... Any help Link to comment
-Doc- Posted December 24, 2015 Share Posted December 24, 2015 Just try to make by your self or think. By the way you have 3 variable that have textItem that result it will thisplay all them instantly otherwise nothing. Link to comment
//_Dragon Posted December 24, 2015 Author Share Posted December 24, 2015 Just try to make by your self or think. By the way you have 3 variable that have textItem that result it will thisplay all them instantly otherwise nothing. IDK How i can fixe :v Anyway thanks Link to comment
//_Dragon Posted December 24, 2015 Author Share Posted December 24, 2015 Any one help me ? 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