Death Posted July 1, 2013 Posted July 1, 2013 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 )
manawydan Posted July 1, 2013 Posted July 1, 2013 1° digite /debugscript 3 2° este é o seu código inteiro? a outra parte esta correta?
Death Posted July 2, 2013 Author Posted July 2, 2013 Esse é o codigo inteiro E n aparece erros no debug '-'
DNL291 Posted July 3, 2013 Posted July 3, 2013 Certifique-se que esse código esteja no lado server no arquivo meta.xml.
Death Posted July 3, 2013 Author Posted July 3, 2013 Esta mais eu fiz um codigo um pouco diferente e funcionou
manawydan Posted July 3, 2013 Posted July 3, 2013 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)!
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