MaRcell Posted February 5, 2014 Share Posted February 5, 2014 (edited) 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 February 5, 2014 by Guest Link to comment
Anubhav Posted February 5, 2014 Share Posted February 5, 2014 What do you mean by Erado and aerial problem? Link to comment
xeon17 Posted February 5, 2014 Share Posted February 5, 2014 This guy should learn english after we will fix his problem 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
Anubhav Posted February 5, 2014 Share Posted February 5, 2014 Eufrat@: you said right but from erado i think he means error. How we can find it . You find by using /debugscript 3 Link to comment
xeon17 Posted February 5, 2014 Share Posted February 5, 2014 Eufrat@: you said right but from erado i think he means error. How we can find it . You find by using /debugscript 3 Yeah i know , i understand a little portugues . '-' Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now