Jump to content

[Help] Spawn Gang Base


Recommended Posts

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

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.
×
×
  • Create New...