Jump to content

Ajuda


Recommended Posts

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 ) 

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