----------------------------------------------------- 
-- script  Bases Area 51 MTA:SA Gang War 
-- @author EufraT & TAPL 
-- @update 28/1/2014 
----------------------------------------------------- 
  
radararea2 = createRadarArea( 110.91990, 1800.89435, 200, 145, 255, 255, 255, 225 ) 
createBlip(279.40317, 1831.25439, 7.72656,62) 
marker2 = createMarker(298.98865, 1815.90613, 3.71094,"cylinder",2,0,0,255,255)   
Maverick = createVehicle ( 487, 251.64256286621,1920.413574218817,640630722046 ) 
  
 addCommandHandler ( "comprar", 
function ( player ) 
local money = getPlayerMoney ( player ) 
local playerTeam = getPlayerTeam ( player ) 
    if ( not playerTeam ) then 
        return 
    end 
local r, g, b = getTeamColor ( playerTeam ) 
local teamMates = getPlayersInTeam ( playerTeam ) 
        if(isElementWithinMarker(player,marker2)) and ( money > 1000000 )  then 
         takePlayerMoney ( player, 1000000 ) 
         setRadarAreaColor ( radararea2, r, g, b, 999 ) 
         outputChatBox ( "#FFF000 [bASE] #FF0000 Voce comprou base a base Area 51 por $1000000", player, 0, 0, 0, true ) 
        for _, v in ipairs(teamMates) do 
        outputChatBox ( "#FFF000 [bASE] #FF0000 Sua gang comprou a base #00FF00 Area 51!", v, 0, 0, 0, true ) 
        end 
        else 
        outputChatBox ( "#FFF000 [bASE] #FF0000 Voce precisa estar no centro do checkpoint e $1000000", player, 0, 0, 0, true ) 
        end 
        end) 
 
Try this.