Jump to content

Ajuda


Recommended Posts

Posted

Pois bem este script era pra tirar da arena o jogador que matar outro jogador

Porem não funciona

Detalhes adicionais a arena fica na dimensão 3

se alguem puder me ajudar agradecerei muito

local hillArea = createColRectangle( 181.21028137207, -2618.5231933594, 500, 700 ) 
local hillRadar = createRadarArea( 181.21028137207, -2618.5231933594, 500, -700, 0, 255, 0, 175 ) 
  
function hill_Enter( thePlayer, matchingDimension ) 
    if getElementType( thePlayer ) == "player" then 
        setRadarAreaFlashing( hillRadar, true ) 
    end 
end 
addEventHandler( "onColShapeHit", hillArea, hill_Enter ) 
  
function test( _, killer ) 
   -- if getElementDimension( source ) == 3 then 
        if isElementWithinColShape( source, hillArea ) then 
            if killer  then 
                local killerPerson = getPlayerName( killer ) 
                setElementDimension( killer, 0 ) 
                setElementInterior( killer,0, 1522.5754394531, -2549.7287597656, 13.546875 ) 
                outputChatBox( '[server]' ..killerPerson.. ' Foi kickado da arenaz por Matar Jogadores  !!!', root, 0, 255, 255, true ) 
            end 
        end 
    end 
--end 
addEventHandler( "onPlayerWasted", root, test ) 

Posted

Certifique-se que esse código esteja no lado server no arquivo meta.xml.

Please do not PM me with scripting related question nor support, use the forums instead.

Posted

voce esta dentro do retangulo? se não tem certeza vai no painel adm e digite: setDevelopmentMode(true) e clica em client depois digite /showcol

se voce estiver no retangulo aparecera varias linhas verdes (formando um retangulo)!

560x95_FFFFFF_09FF00_050505_000000.png

"Querer não é poder, mas tentar é avançar"!

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...