Jump to content

[help]Territorios


MaRcell

Recommended Posts

Problem aera put in place so that certain buga will help someone else to help me if you've got something Erado with the script

local pArea     = createRadarArea(1343.0024414063,2159.3093261719, 60,60,255,255,255 ) 
    local pCuboid   = createColCuboid( 1343.0024414063,2159.3093261719,10, 197.5, 92, 30  ) 
      
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputDebugString("Basaball", 3, 0, 255, 0) 
end 
) 
  
            addEventHandler( 
                'onColShapeHit', pCuboid, 
                function( player ) 
                    if (getPlayerTeam( player )) then 
                        local pTeam = getPlayerTeam( player ) 
                        local iR, iG, iB = getTeamColor( pTeam ) 
                        local rR, gG, bB = getRadarAreaColor( pArea ) 
                        if ( iR == rR ) and ( iG == gG ) and ( iB == bB ) then 
                            triggerClientEvent(player, 'friendly', player) 
                        else 
                        setRadarAreaFlashing( pArea, true ) 
                        outputChatBox( "#EB1414[GANGZONAS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." esta atacando a gang / Na GANGZONA #ff0000 Basaball!",getRootElement(),255,255,255,true); 
                        triggerClientEvent(player, 'time', player) 
                        triggerClientEvent(player, 'countdown', player) 
                        pArea1Timer = setTimer( function() 
                        setRadarAreaColor (pArea, iR, iG, iB, 999); 
                        givePlayerMoney( player, 4000 ); 
                        outputChatBox( "#EB1414[GANGZONAS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." dominou  A Gangzona #ff0000 Basaball#F8F8FFA da gang / ! ",getRootElement(),255,255,255,true); 
                        setRadarAreaFlashing( pArea, false ) 
                        end, 5000, 1 ) 
                        end 
                    else 
                        triggerClientEvent(player, 'group', player) 
                    end 
                end 
        )local pArea     = createRadarArea(1343.0024414063,2159.3093261719, 60,60,255,255,255 ) 
    local pCuboid   = createColCuboid( 1343.0024414063,2159.3093261719,10, 197.5, 92, 30  ) 
      
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputDebugString("Basaball", 3, 0, 255, 0) 
end 
) 
  
            addEventHandler( 
                'onColShapeHit', pCuboid, 
                function( player ) 
                    if (getPlayerTeam( player )) then 
                        local pTeam = getPlayerTeam( player ) 
                        local iR, iG, iB = getTeamColor( pTeam ) 
                        local rR, gG, bB = getRadarAreaColor( pArea ) 
                        if ( iR == rR ) and ( iG == gG ) and ( iB == bB ) then 
                            triggerClientEvent(player, 'friendly', player) 
                        else 
                        setRadarAreaFlashing( pArea, true ) 
                        outputChatBox( "#EB1414[GANGZONAS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." esta atacando a gang / Na GANGZONA #ff0000 Basaball!",getRootElement(),255,255,255,true); 
                        triggerClientEvent(player, 'time', player) 
                        triggerClientEvent(player, 'countdown', player) 
                        pArea1Timer = setTimer( function() 
                        setRadarAreaColor (pArea, iR, iG, iB, 999); 
                        givePlayerMoney( player, 4000 ); 
                        outputChatBox( "#EB1414[GANGZONAS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." dominou  A Gangzona #ff0000 Basaball#F8F8FFA da gang / ! ",getRootElement(),255,255,255,true); 
                        setRadarAreaFlashing( pArea, false ) 
                        end, 5000, 1 ) 
                        end 
                    else 
                        triggerClientEvent(player, 'group', player) 
                    end 
                end 
        )[ 

Edited by Guest
Link to comment

This guy should learn english after we will fix his problem :lol:

I found a bug in script and fixed , maybe this will help.

local pArea     = createRadarArea(1343.0024414063,2159.3093261719, 60,60,255,255,255 ) 
    local pCuboid   = createColCuboid( 1343.0024414063,2159.3093261719,10, 197.5, 92, 30  ) 
      
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputDebugString("Basaball", 3, 0, 255, 0) 
end 
) 
  
            addEventHandler( 
                'onColShapeHit', pCuboid, 
                function( player ) 
                    if (getPlayerTeam( player )) then 
                        local pTeam = getPlayerTeam( player ) 
                        local iR, iG, iB = getTeamColor( pTeam ) 
                        local rR, gG, bB = getRadarAreaColor( pArea ) 
                        if ( iR == rR ) and ( iG == gG ) and ( iB == bB ) then 
                            triggerClientEvent(player, 'friendly', player) 
                        else 
                        setRadarAreaFlashing( pArea, true ) 
                        outputChatBox( "#EB1414[GANGZONAS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." esta atacando a gang / Na GANGZONA #ff0000 Basaball!",getRootElement(),255,255,255,true); 
                        triggerClientEvent(player, 'time', player) 
                        triggerClientEvent(player, 'countdown', player) 
                        pArea1Timer = setTimer( function() 
                        setRadarAreaColor (pArea, iR, iG, iB, 999); 
                        givePlayerMoney( player, 4000 ); 
                        outputChatBox( "#EB1414[GANGZONAS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." dominou  A Gangzona #ff0000 Basaball#F8F8FFA da gang / ! ",getRootElement(),255,255,255,true); 
                        setRadarAreaFlashing( pArea, false ) 
                        end, 5000, 1 ) 
                        end 
                    else 
                        triggerClientEvent(player, 'group', player) 
                    end 
                end 
        )local pArea     = createRadarArea(1343.0024414063,2159.3093261719, 60,60,255,255,255 ) 
    local pCuboid   = createColCuboid( 1343.0024414063,2159.3093261719,10, 197.5, 92, 30  ) 
      
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputDebugString("Basaball", 3, 0, 255, 0) 
end 
) 
  
            addEventHandler( 
                'onColShapeHit', pCuboid, 
                function( player ) 
                    if (getPlayerTeam( player )) then 
                        local pTeam = getPlayerTeam( player ) 
                        local iR, iG, iB = getTeamColor( pTeam ) 
                        local rR, gG, bB = getRadarAreaColor( pArea ) 
                        if ( iR == rR ) and ( iG == gG ) and ( iB == bB ) then 
                            triggerClientEvent(player, 'friendly', player) 
                        else 
                        setRadarAreaFlashing( pArea, true ) 
                        outputChatBox( "#EB1414[GANGZONAS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." esta atacando a gang / Na GANGZONA #ff0000 Basaball!",getRootElement(),255,255,255,true); 
                        triggerClientEvent(player, 'time', player) 
                        triggerClientEvent(player, 'countdown', player) 
                        pArea1Timer = setTimer( function() 
                        setRadarAreaColor (pArea, iR, iG, iB, 999); 
                        givePlayerMoney( player, 4000 ); 
                        outputChatBox( "#EB1414[GANGZONAS] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." dominou  A Gangzona #ff0000 Basaball#F8F8FFA da gang / ! ",getRootElement(),255,255,255,true); 
                        setRadarAreaFlashing( pArea, false ) 
                        end, 5000, 1 ) 
                        end 
                    else 
                        triggerClientEvent(player, 'group', player) 
                    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...