Jump to content

Pomoc oko scripte


xeon17

Recommended Posts

Pozdrav ljudi , radim na svom sistemu baza i ide mi super ali evo naprijimjer gang ''WANTEDS '' kupi bazu Area 51 koja je oznacena na mapi sa Radar Areom ,onda gang WANTEDS spawn u bazi Area 51 , na kordinatama koje ja odlucim.

Ali ne znam kako to da uradim , ni koje funkcije da koristim , znam tablu da napravim sa kordinatama ali sta posle ?

Evo ovo je baza Area 51 ,

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)   
  
addCommandHandler ( "comprar51", 
function ( player ) 
    local playerTeam = getPlayerTeam ( player ) 
    if ( playerTeam ) then 
        local r, g, b = getTeamColor ( playerTeam ) 
        if(isElementWithinMarker(player,marker2)) then 
            setRadarAreaColor ( radararea2, r, g, b, 155 ) 
            local money = getPlayerMoney ( player ) 
            if ( money >= 1000000 ) then 
                takePlayerMoney ( player, 1000000 ) 
                local color = getTeamColor ( playerTeam ) 
                outputChatBox ( "#FFF000 [bASE] #FF0000 Sua gang comprou a base #00FF00 Area 51!", player, 0, 0, 0, true ) 
            end 
        end 
    end 
end 
) 
  
addEventHandler("onMarkerHit", marker2, 
function (player) 
    outputChatBox ( "#FFF000 [bASE] #FF0000 Para comprar a base digita #00FF00 /comprar51 (1000000$)", player, 0, 0, 0, true) 
end 
) 

Link to post
  • 3 months later...
  • 2 weeks later...

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