Jump to content

plz plz plz any healp


Mr.Co00oL

Recommended Posts

hi

all pro scripter plz plz i need healp in this script is called "turfe"

i want make this scripte when the player is deaths and he have turfe he and hs gang wll spawn in the turfe plz any healp

addEventHandler("onResourceStart",resourceRoot,function() 
    outputDebugString("Turf system by Enjoy ( manve ) |~| Has been turned on!") -- Please don't remove this =) 
end ) 
      
            addEventHandler( 
                'onColShapeHit', root, 
                function( p ) -- you should have added player param here 
                    if (getPlayerTeam( p )) then 
                      if( source == pCuboid ) then 
                        outputChatBox("------||~ INFO ~||------", N, 0,255,0) 
                        outputChatBox("Turf owners: coming soon!", N, 255,255,0) 
                        outputChatBox("Taken time: 10minutes.", N, 255,255,0) 
                        outputChatBox("Wait 10min to take turf.", N, 255,255,0) 
                        outputChatBox("------||prees "N"to start capiter||------", N, 255,0,0) 
                        setRadarAreaFlashing( pArea, true ) 
                        local pTeam = getPlayerTeam( p )    -- source is the col shape, you should use 'N', the player arg 
                        local iR, iG, iB = getTeamColor( pTeam ) 
                        pArea1Timer = setTimer( function() 
                        setRadarAreaColor (pArea, iR, iG, iB, 100); 
                        givePlayerMoney( p, 4000 ); 
                        outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", N, 0, 255, 0, true ); 
                        setRadarAreaFlashing( pArea, false ) 
                        end, 600000, 1 ) 
                      end 
                    else 
                        outputChatBox("Get in a group first!",N, 255, 0, 0) 
                    end 
                end 
        ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid ) then 
                setRadarAreaFlashing( pArea, false ) 
                if isTimer( pArea1Timer ) then 
                    killTimer( pArea1Timer ) 
                end 
            end 
        end 
    ) 
     
    ----------------------------- 
    addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid2 ) then 
                outputChatBox("------||~ INFO ~||------", N, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", N, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", N, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", N, 255,255,0) 
                outputChatBox("------||prees "N"to start capiter||------", N, 255,0,0) 
                setRadarAreaFlashing( pArea2, true ) 
                local pTeam2 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam2 ) 
                pArea2Timer = setTimer( function() 
                setRadarAreaColor (pArea2, iR2, iG2, iB2, 100); 
                givePlayerMoney( N, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", N, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea2, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",N, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid2 ) then 
                setRadarAreaFlashing( pArea2, false ) 
                if isTimer( pArea2Timer ) then 
                    killTimer( pArea2Timer ) 
                end 
            end 
        end 
    ) 
     
    ------------------------------------ 
     
        addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid3 ) then 
                outputChatBox("------||~ INFO ~||------", N, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", N, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", N, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", N, 255,255,0) 
                outputChatBox("------||prees "N"to start capiter||------", N, 255,0,0) 
                setRadarAreaFlashing( pArea3, true ) 
                local pTeam3 = getPlayerTeam( p )   -- source is the col shape, you should use 'N', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam3 ) 
                pArea3Timer = setTimer( function() 
                setRadarAreaColor (pArea3, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", N, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea3, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",N, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid3 ) then 
                setRadarAreaFlashing( pArea3, false ) 
                if isTimer( pArea3Timer ) then 
                    killTimer( pArea3Timer ) 
                end 
            end 
        end 
    ) 
     
    ------------------------------------- 
     
            addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid4 ) then 
                outputChatBox("------||~ INFO ~||------", N, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", N, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", N, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", N, 255,255,0) 
                outputChatBox("------||prees "N"to start capiter||------", N, 255,0,0) 
                setRadarAreaFlashing( pArea4, true ) 
                local pTeam4 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam4 ) 
                pArea4Timer = setTimer( function() 
                setRadarAreaColor (pArea4, iR2, iG2, iB2, 100); 
                givePlayerMoney( N, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", N, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea4, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid4 ) then 
                setRadarAreaFlashing( pArea4, false ) 
                if isTimer( pArea3Timer ) then 
                    killTimer( pArea3Timer ) 
                end 
            end 
        end 
    ) 

this is the script how i can mack it ?

Link to comment

Are you sure this script for you? or stolen? and you are so bad in english i can,t understan you

Nope, it's manve's script, as said in the script itself. Also I've seen this before.

On topic, learn scripting and figure it out youself, hint;

setElementPosition 

and

getPlayerTeam 

and

addEventHandler ( "onPlayerWasted" ... ) 

There are other functions, just take a look at the MTA wiki.

Link to comment

i want the player his gang who capiter will respawn in the turfe and the script save the gang turf becouse the script dont show the gang who capiter in the information plz any idea :?::?::?::?::|

  local pArea     = createRadarArea( 2130, 630, 200, 100, 255, 255, 255, 125 ) 
    local pArea2     = createRadarArea( 2488.8793945313, 680.78289794922, 250, 130, 255, 255, 255, 125 ) 
    local pCuboid   = createColCuboid( 2133.1950683594, 633.66455078125, 10, 197.5, 92, 30 ) 
    local pCuboid2   = createColCuboid( 2486.5935058594, 678.20172119141, 9.5689830780029,  245, 133, 30 ) 
    local pArea3     = createRadarArea( 1858, 623, 140, 165, 255, 255, 255, 125 ) 
    local pCuboid3   = createColCuboid( 1856.2864990234, 627.07629394531, 9,  138.25, 152.75, 30 ) 
    local pArea4     = createRadarArea( 1577, 663, 180, 130, 255, 255, 255, 125 ) 
    local pCuboid4   = createColCuboid( 1576.8956298828, 662.84362792969, 9.671875, 181, 120.5, 30 )  
    local pArea4     = createRadarArea( 2778, 834, 110, 190, 255, 255, 255, 125 ) 
    local pCuboid4   = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375,  113.5, 188, 30 )  
      
addEventHandler("onResourceStart",resourceRoot,function() 
    outputDebugString("Turf system by Enjoy ( manve ) |~| Has been turned on!") -- Please don't remove this =) 
end ) 
      
            addEventHandler( 
                'onColShapeHit', root, 
                function( p ) -- you should have added player param here 
                    if (getPlayerTeam( p )) then 
                      if( source == pCuboid ) then 
                        outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                        outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                        outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                        outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                        outputChatBox("------||~ END ~||------", p, 255,0,0) 
                        setRadarAreaFlashing( pArea, true ) 
                        local pTeam = getPlayerTeam( p )    -- source is the col shape, you should use 'p', the player arg 
                        local iR, iG, iB = getTeamColor( pTeam ) 
                        pArea1Timer = setTimer( function() 
                        setRadarAreaColor (pArea, iR, iG, iB, 100); 
                        givePlayerMoney( p, 4000 ); 
                        outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                        setRadarAreaFlashing( pArea, false ) 
                        end, 600000, 1 ) 
                      end 
                    else 
                        outputChatBox("Get in a group first!",p, 255, 0, 0) 
                    end 
                end 
        ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid ) then 
                setRadarAreaFlashing( pArea, false ) 
                if isTimer( pArea1Timer ) then 
                    killTimer( pArea1Timer ) 
                end 
            end 
        end 
    ) 
     
    ----------------------------- 
    addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid2 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea2, true ) 
                local pTeam2 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam2 ) 
                pArea2Timer = setTimer( function() 
                setRadarAreaColor (pArea2, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea2, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid2 ) then 
                setRadarAreaFlashing( pArea2, false ) 
                if isTimer( pArea2Timer ) then 
                    killTimer( pArea2Timer ) 
                end 
            end 
        end 
    ) 
     
    ------------------------------------ 
     
        addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid3 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea3, true ) 
                local pTeam3 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam3 ) 
                pArea3Timer = setTimer( function() 
                setRadarAreaColor (pArea3, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea3, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid3 ) then 
                setRadarAreaFlashing( pArea3, false ) 
                if isTimer( pArea3Timer ) then 
                    killTimer( pArea3Timer ) 
                end 
            end 
        end 
    ) 
     
    ------------------------------------- 
     
            addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid4 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea4, true ) 
                local pTeam4 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam4 ) 
                pArea4Timer = setTimer( function() 
                setRadarAreaColor (pArea4, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea4, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid4 ) then 
                setRadarAreaFlashing( pArea4, false ) 
                if isTimer( pArea3Timer ) then 
                    killTimer( pArea3Timer ) 
                end 
            end 
        end 
    ) 
     setElementPosition 
    getPlayerTeam 
    addEventHandler ( "onPlayerWasted" ... ) 
  
     

Link to comment
That makes totally no sense. Learn to script, you simply copied what Ab-47 said.

men this is true i m noob in script and i dont understand how to fix the script can you give me the correct cod plz to fix the script i want the script save the gang turf and spawn the gang who capiter gang in the turf plz any help

i m new her and i m nob in scripting :roll::?:?

Link to comment
i want the player his gang who capiter will respawn in the turfe and the script save the gang turf becouse the script dont show the gang who capiter in the information plz any idea :?::?::?::?::|
  local pArea     = createRadarArea( 2130, 630, 200, 100, 255, 255, 255, 125 ) 
    local pArea2     = createRadarArea( 2488.8793945313, 680.78289794922, 250, 130, 255, 255, 255, 125 ) 
    local pCuboid   = createColCuboid( 2133.1950683594, 633.66455078125, 10, 197.5, 92, 30 ) 
    local pCuboid2   = createColCuboid( 2486.5935058594, 678.20172119141, 9.5689830780029,  245, 133, 30 ) 
    local pArea3     = createRadarArea( 1858, 623, 140, 165, 255, 255, 255, 125 ) 
    local pCuboid3   = createColCuboid( 1856.2864990234, 627.07629394531, 9,  138.25, 152.75, 30 ) 
    local pArea4     = createRadarArea( 1577, 663, 180, 130, 255, 255, 255, 125 ) 
    local pCuboid4   = createColCuboid( 1576.8956298828, 662.84362792969, 9.671875, 181, 120.5, 30 )  
    local pArea4     = createRadarArea( 2778, 834, 110, 190, 255, 255, 255, 125 ) 
    local pCuboid4   = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375,  113.5, 188, 30 )  
      
addEventHandler("onResourceStart",resourceRoot,function() 
    outputDebugString("Turf system by Enjoy ( manve ) |~| Has been turned on!") -- Please don't remove this =) 
end ) 
      
            addEventHandler( 
                'onColShapeHit', root, 
                function( p ) -- you should have added player param here 
                    if (getPlayerTeam( p )) then 
                      if( source == pCuboid ) then 
                        outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                        outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                        outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                        outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                        outputChatBox("------||~ END ~||------", p, 255,0,0) 
                        setRadarAreaFlashing( pArea, true ) 
                        local pTeam = getPlayerTeam( p )    -- source is the col shape, you should use 'p', the player arg 
                        local iR, iG, iB = getTeamColor( pTeam ) 
                        pArea1Timer = setTimer( function() 
                        setRadarAreaColor (pArea, iR, iG, iB, 100); 
                        givePlayerMoney( p, 4000 ); 
                        outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                        setRadarAreaFlashing( pArea, false ) 
                        end, 600000, 1 ) 
                      end 
                    else 
                        outputChatBox("Get in a group first!",p, 255, 0, 0) 
                    end 
                end 
        ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid ) then 
                setRadarAreaFlashing( pArea, false ) 
                if isTimer( pArea1Timer ) then 
                    killTimer( pArea1Timer ) 
                end 
            end 
        end 
    ) 
     
    ----------------------------- 
    addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid2 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea2, true ) 
                local pTeam2 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam2 ) 
                pArea2Timer = setTimer( function() 
                setRadarAreaColor (pArea2, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea2, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid2 ) then 
                setRadarAreaFlashing( pArea2, false ) 
                if isTimer( pArea2Timer ) then 
                    killTimer( pArea2Timer ) 
                end 
            end 
        end 
    ) 
     
    ------------------------------------ 
     
        addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid3 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea3, true ) 
                local pTeam3 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam3 ) 
                pArea3Timer = setTimer( function() 
                setRadarAreaColor (pArea3, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea3, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid3 ) then 
                setRadarAreaFlashing( pArea3, false ) 
                if isTimer( pArea3Timer ) then 
                    killTimer( pArea3Timer ) 
                end 
            end 
        end 
    ) 
     
    ------------------------------------- 
     
            addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid4 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea4, true ) 
                local pTeam4 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam4 ) 
                pArea4Timer = setTimer( function() 
                setRadarAreaColor (pArea4, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea4, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid4 ) then 
                setRadarAreaFlashing( pArea4, false ) 
                if isTimer( pArea3Timer ) then 
                    killTimer( pArea3Timer ) 
                end 
            end 
        end 
    ) 
     setElementPosition 
    getPlayerTeam 
    addEventHandler ( "onPlayerWasted" ... ) 
  
     

Lol, you doesn't know what is lua, Just learn scripting here https://wiki.multitheftauto.com/wiki/Main_Page

and if you still have problem then go to your language section and ask help there because we can't understand your grammar.

Link to comment
i want the player his gang who capiter will respawn in the turfe and the script save the gang turf becouse the script dont show the gang who capiter in the information plz any idea :?::?::?::?::|
  local pArea     = createRadarArea( 2130, 630, 200, 100, 255, 255, 255, 125 ) 
    local pArea2     = createRadarArea( 2488.8793945313, 680.78289794922, 250, 130, 255, 255, 255, 125 ) 
    local pCuboid   = createColCuboid( 2133.1950683594, 633.66455078125, 10, 197.5, 92, 30 ) 
    local pCuboid2   = createColCuboid( 2486.5935058594, 678.20172119141, 9.5689830780029,  245, 133, 30 ) 
    local pArea3     = createRadarArea( 1858, 623, 140, 165, 255, 255, 255, 125 ) 
    local pCuboid3   = createColCuboid( 1856.2864990234, 627.07629394531, 9,  138.25, 152.75, 30 ) 
    local pArea4     = createRadarArea( 1577, 663, 180, 130, 255, 255, 255, 125 ) 
    local pCuboid4   = createColCuboid( 1576.8956298828, 662.84362792969, 9.671875, 181, 120.5, 30 )  
    local pArea4     = createRadarArea( 2778, 834, 110, 190, 255, 255, 255, 125 ) 
    local pCuboid4   = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375,  113.5, 188, 30 )  
      
addEventHandler("onResourceStart",resourceRoot,function() 
that = no healp okey okey 
    outputDebugString("Turf system by Enjoy ( manve ) |~| Has been turned on!") -- Please don't remove this =) 
end ) 
      
            addEventHandler( 
                'onColShapeHit', root, 
                function( p ) -- you should have added player param here 
                    if (getPlayerTeam( p )) then 
                      if( source == pCuboid ) then 
                        outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                        outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                        outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                        outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                        outputChatBox("------||~ END ~||------", p, 255,0,0) 
                        setRadarAreaFlashing( pArea, true ) 
                        local pTeam = getPlayerTeam( p )    -- source is the col shape, you should use 'p', the player arg 
                        local iR, iG, iB = getTeamColor( pTeam ) 
                        pArea1Timer = setTimer( function() 
                        setRadarAreaColor (pArea, iR, iG, iB, 100); 
                        givePlayerMoney( p, 4000 ); 
                        outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                        setRadarAreaFlashing( pArea, false ) 
                        end, 600000, 1 ) 
                      end 
                    else 
                        outputChatBox("Get in a group first!",p, 255, 0, 0) 
                    end 
                end 
        ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid ) then 
                setRadarAreaFlashing( pArea, false ) 
                if isTimer( pArea1Timer ) then 
                    killTimer( pArea1Timer ) 
                end 
            end 
        end 
    ) 
     
    ----------------------------- 
    addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid2 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea2, true ) 
                local pTeam2 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam2 ) 
                pArea2Timer = setTimer( function() 
                setRadarAreaColor (pArea2, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea2, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid2 ) then 
                setRadarAreaFlashing( pArea2, false ) 
                if isTimer( pArea2Timer ) then 
                    killTimer( pArea2Timer ) 
                end 
            end 
        end 
    ) 
     
    ------------------------------------ 
     
        addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid3 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea3, true ) 
                local pTeam3 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam3 ) 
                pArea3Timer = setTimer( function() 
                setRadarAreaColor (pArea3, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea3, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid3 ) then 
                setRadarAreaFlashing( pArea3, false ) 
                if isTimer( pArea3Timer ) then 
                    killTimer( pArea3Timer ) 
                end 
            end 
        end 
    ) 
     
    ------------------------------------- 
     
            addEventHandler(  
        'onColShapeHit', root, 
        function( p ) -- you should have added player param here 
          if (getPlayerTeam( p )) then 
            if( source == pCuboid4 ) then 
                outputChatBox("------||~ INFO ~||------", p, 0,255,0) 
                outputChatBox("Turf owners: coming soon!", p, 255,255,0) 
                outputChatBox("Taken time: 10minutes.", p, 255,255,0) 
                outputChatBox("Wait 10min to take turf.", p, 255,255,0) 
                outputChatBox("------||~ END ~||------", p, 255,0,0) 
                setRadarAreaFlashing( pArea4, true ) 
                local pTeam4 = getPlayerTeam( p )   -- source is the col shape, you should use 'p', the player arg  
                local iR2, iG2, iB2 = getTeamColor( pTeam4 ) 
                pArea4Timer = setTimer( function() 
                setRadarAreaColor (pArea4, iR2, iG2, iB2, 100); 
                givePlayerMoney( p, 4000 ); 
                outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); 
                setRadarAreaFlashing( pArea4, false ) 
                end, 600000, 1 ) 
            end 
          else   
          outputChatBox("Get in a group first!",p, 255, 0, 0) 
          end 
             
        end 
    ) 
  
    addEventHandler( 
        'onColShapeLeave', root,    
        function( ) 
            if( source == pCuboid4 ) then 
                setRadarAreaFlashing( pArea4, false ) 
                if isTimer( pArea3Timer ) then 
                    killTimer( pArea3Timer ) 
                end 
            end 
        end 
    ) 
     setElementPosition 
    getPlayerTeam 
    addEventHandler ( "onPlayerWasted" ... ) 
  
     

Lol, you doesn't know what is lua, Just learn scripting here https://wiki.multitheftauto.com/wiki/Main_Page

and if you still have problem then go to your language section and ask help there because we can't understand your grammar.

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