Jump to content

[Help]createRadarArea


xXMADEXx

Recommended Posts

Hey guys, i have a turf area for my DM zone... The area (colored) will show in F11, but not on the radar. The little radar in the bottom left it will not show on, just F11. Please help.

Code: (server)

    local hillArea = createColRectangle ( -2982.314453125, -2989.0341796875, 1800, 2100 ) 
    local hillRadar = createRadarArea ( -2982.314453125, -2989.0341796875, 1800, 2100, 200, 0, 0, 150 ) 
      
    -- add hill_Enter as a handler for when a player enters the hill area 
    function hill_Enter ( thePlayer, matchingDimension ) 
        -- announce to everyone that the player entered the hill 
        if (getElementType(thePlayer) == "player") then 
            outputChatBox( 'You have entered the Dethmatch Zone!', thePlayer, 255, 0, 0 ) 
            setRadarAreaFlashing ( hillRadar, true ) 
        end 
    end 
    addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) 
      
    -- add hill_Enter as a handler for when a player leaves the hill area 
    function hill_Exit ( thePlayer, matchingDimension ) 
        -- check if the player is not dead 
        if (getElementType(thePlayer) == "player") then 
            if isPedDead ( thePlayer ) ~= true then 
            -- if he was alive, announce to everyone that the player has left the hill 
                outputChatBox ( 'You have left the Dethmatch Zone!', thePlayer, 255, 0, 0 ) 
                setRadarAreaFlashing ( hillRadar, true ) 
            end 
        end 
    end 
    addEventHandler ( "onColShapeLeave", hillArea, hill_Exit ) 

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