ice_brasil Posted May 3, 2013 Share Posted May 3, 2013 I want to put when a gang all the gang members spawn em território dominado my turf (client) addEvent('countdown', true) function reduceCountdown( ) cont = 50 setTimer( function() cont = cont -1 outputChatBox( cont, 255, 0, 0 ) end,1000,49 ) end addEventHandler('countdown', root, reduceCountdown) addEvent('time', true); addEventHandler('time', root, function( ) local w, h = guiGetScreenSize( ); outputChatBox( "[AVISO] Começando Contagem",getRootElement(),240,128,128,true); local styleLetters = guiCreateFont( 'font.ttf', 20 ); test = guiCreateLabel( w*0.0002, h*0.0011, 0.475, 0.1, 'Dominando..', true ); guiLabelSetColor( test, 255, 255, 0 ) guiSetFont( test, styleLetters ); setTimer( function( ) if isElement( test ) then destroyElement( test ); end end, 5000, 1 ); end ); addEvent('friendly', true); addEventHandler('friendly', root, function( ) local w, h = guiGetScreenSize( ); local styleLetters2 = guiCreateFont( 'font.ttf', 20 ); test2 = guiCreateLabel( w*0.00025, h*0.0011, 0.475, 0.1, 'Territorio Dominado', true ); guiLabelSetColor( test2, 0, 255, 0 ) guiSetFont( test2, styleLetters2 ); setTimer( function( ) if isElement( test2 ) then destroyElement( test2 ); end end, 5000, 1 ); end ); addEvent('group', true); addEventHandler('group', root, function( ) local w, h = guiGetScreenSize( ); local styleLetters3 = guiCreateFont( 'font.ttf', 20 ); test3 = guiCreateLabel( w*0.0003, h*0.0011, 0.475, 0.1, 'Kratos Home', true ); guiLabelSetColor( test3, 255, 0, 0 ) guiSetFont( test3, styleLetters3 ); setTimer( function( ) if isElement( test3 ) then destroyElement( test3 ); end end, 5000, 1 ); end ); addEvent('time2', true); addEventHandler('time2', root, function( ) if isElement( test ) then destroyElement( test ) end end ); addEvent('friendly2', true); addEventHandler('friendly2', root, function( ) if isElement( test2 ) then destroyElement( test2 ) end end ); What do add to add the function? Link to comment
Metall Posted May 3, 2013 Share Posted May 3, 2013 spawnPlayer Basiclly like this, you can use a table or so, to get the coordinate spawn locations from and then sort of just spawn the player: spawnPlayer(source, x, y, z) 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