xeon17 Posted December 5, 2013 Share Posted December 5, 2013 I wanted to crate a script to let a gang get teritory,village,base and other , scripts looks good but i still need some help from you guys becouse i'm not so good scripter local pArea = createRadarArea( 2130, 630, 200, 100, 255, 255, 255, 125 ) local pCuboid = createColCuboid( 2133.1950683594, 633.66455078125, 10, 197.5, 92, 30 ) addEventHandler("onResourceStart", resourceRoot, function() outputDebugString("Territorio Kratos Home Carregado!", 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( "#2F4F4F[TERITORY] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." Attact the territory Docas !",getRootElement(),255,255,255,true); triggerClientEvent(player, 'time', player) triggerClientEvent(player, 'countdown', player) pArea1Timer = setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100); givePlayerMoney( player, 4000 ); outputChatBox( "#2F4F4F[TERRITORY] #F8F8FFA gang ".. getTeamName(getPlayerTeam(player)).." Dominated the territory Docas!",getRootElement(),255,255,255,true); setRadarAreaFlashing( pArea, false ) end, 5000, 1 ) end else triggerClientEvent(player, 'group', player) end end ) This script let gangs get teritory , but how i can set this.. when a gang enter 1 teritory on left side start a timer like this on left side '' name of the teritory and timer how much need a gang to start domination '' i crated the name of territory alone but no know how timer When timer end then start the domination , and there are 2 gangs (the gang who attact territory , and the gang who deffend territory ) their deaths in territory , for every death of a gang , enemy gang get +300 points , the gang who deffend teritory should have 500 points at start of domination , timer : 4 minutes , and when a member of a gang stay in teritory = that gang get +1 point in 1 second , 2 members =+2 points in 1 second. Sorry if this is to hard , but im working at a gamemode i crated 90% of scripts alone for the gamemode , but need a little help for the 10% if someone help me at this , i can crate a realy nice gamemode 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