Jump to content

Help in that script


Death

Recommended Posts

This script is to play the player to kill another player in coordinated test more he plays pro killer was to be deducted from my arena and be played at the airport in san fierro

Only my arena is the dimension 3 and killer would have to be played in dimension 0

Someone please help me

thank you

And sorry for my bad english

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 ) == 0 then 
        if isElementWithinColShape( source, hillArea ) then 
            if killer and killer == source then 
                local killerPerson = getPlayerName( killer ) 
                setElementDimension( killer, 0 ) 
                setElementPosition( killer, 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...