capitanazop

show static image for all players?

Recommended Posts

hi well i test the countdown script but this only show to the player who use this command, how i can do to show to all players?

here the code.

function Countdown ()
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/10.png",true)
setTimer ( Countdown9, 1000, 1 )
outputChatBox ( "the match start in!", getRootElement(), 255, 255, 255, true )
end
addCommandHandler ( "vamos", Countdown )
 
function Countdown9 (  )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/9.png",true)
setTimer ( Countdown8, 1000, 1 )
end
function Countdown8 (  )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/8.png",true)
setTimer ( Countdown7, 1000, 1 )
end
function Countdown7 (  )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/7.png",true)
setTimer ( Countdown6, 1000, 1 )
end
function Countdown6 ( )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/6.png",true)
setTimer ( Countdown5, 1000, 1 )
end
function Countdown5 ( )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/5.png",true)
setTimer ( Countdown4, 1000, 1 )
end
function Countdown4 (  )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/4.png",true)
setTimer ( Countdown3, 1000, 1 )
end
function Countdown3 (  )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/3.png",true)
setTimer ( Countdown2, 1000, 1 )
end
function Countdown2 (  )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/2.png",true)
setTimer ( Countdown1, 1000, 1 )
end
function Countdown1 (  )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/1.png",true)
setTimer ( Countdown0, 1000, 1 )
end
function Countdown0 ( )
guiSetVisible ( imagecount, false )
imagecount = guiCreateStaticImage(.40,.40,.2,.2,"images/go.png",true)
setTimer ( CountdownEnd, 3000, 1 )
end
function CountdownEnd ( )
guiSetVisible ( imagecount, false )
end

bye :D

Share this post


Link to post

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.