Jump to content

Help


xeon17

Recommended Posts

i'm lua begginer and need help at my base script , my script no work , i want when a player have a gang and he going in extample base Garagem and write /buygaragem on the marker he buy the base for 500.000 $ and the radar area get his gang color. can someone help me please

radararea = createRadarArea( 2774.91992, 828.89435, 120, 206, 255, 255, 255, 225 ) 
createBlip(2820.63477, 971.96545, 10.75000,61) 
marker = createMarker(2814.67114, 972.01782, 9.75000,"cylinder",2,0,0,255,255) 
addCommandHandler("buygaragem", 
function(player) 
local playerTeam = getPlayerTeam ( playerTeam ) 
if ( playerTeam ) then 
r,g,b = getTeamColor(theTeam) 
setRadarAreaColor(radararea,r,g,b,155) 
local money = getPlayerMoney(player) 
if (money >= 500000) then 
takePlayerMoney(player, 500000) 
local color = getTeamColor ( playerTeam ) 
 outputChatBox("#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 GARAGEM !", player, 0, 0, 0, true) 
        end 
    end 
end) 
  
                         

Link to comment
radararea = createRadarArea( 2774.91992, 828.89435, 120, 206, 255, 255, 255, 225 ) 
createBlip(2820.63477, 971.96545, 10.75000,61) 
marker = createMarker(2814.67114, 972.01782, 9.75000,"cylinder",2,0,0,255,255) 
  
addCommandHandler ( "buygaragem", 
    function ( player ) 
        local playerTeam = getPlayerTeam ( player ) 
        if ( playerTeam ) then 
            local r, g, b = getTeamColor ( playerTeam ) 
            setRadarAreaColor ( radararea, r, g, b, 155 ) 
            local money = getPlayerMoney ( player ) 
            if ( money >= 500000 ) then 
                takePlayerMoney ( player, 500000 ) 
                local color = getTeamColor ( playerTeam ) 
                outputChatBox ( "#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 GARAGEM !", player, 0, 0, 0, true ) 
            end 
        end 
    end 
) 

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