Blaawee Posted December 5, 2012 Share Posted December 5, 2012 (edited) ي شباب هذا كود تلوين الكلام في الشات سويته سيرفر ضبط بس لما حطيته كلنت صار الكود يطلع والكلام مو ملون وش اغير فيه ؟ outputChatBox("#7CFC00 BeCooL ", root, 255, 255, 255, true) outputChatBox("#7CFC00 BeCooL",255,255,255,true) برٍسّتِيًج يً رٍيًتِ تِوَضح لِه شنوَ سّوَوَيًتِ =) بعّدِيًن فيً سّؤآلِ يًدِوَرٍ فيً رٍآسّيً >< ذآ منوَ مسّوَيً ذآ آلِموَدِ ؟ local pArea = createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ) local pArea2 = createRadarArea( 2488.8793945313, 680.78289794922, 250, 130, 0, 255, 0, 175 ) 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, 0, 255, 0, 175 ) local pCuboid3 = createColCuboid( 1856.2864990234, 627.07629394531, 9, 138.25, 152.75, 30 ) local pArea4 = createRadarArea( 1577, 663, 180, 130, 0, 255, 0, 175 ) local pCuboid4 = createColCuboid( 1576.8956298828, 662.84362792969, 9.671875, 181, 120.5, 30 ) local pArea4 = createRadarArea( 2778, 834, 110, 190, 0, 255, 0, 175 ) local pCuboid4 = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375, 113.5, 188, 30 ) local mohamad00 = createColCuboid( 2238.4790039063, 2723.9309082031, 9.6484375, 113.5, 188, 30 ) local pArea00 = createRadarArea( 2235, 2720, 200, 90, 0, 255, 0, 175 ) local mohamad01 = createColCuboid( 2497.9584960938, 2690.1040039063, 9.6484375, 113.5, 188, 30 ) local pArea01 = createRadarArea( 2494, 2687, 100, 200, 0, 255, 0, 175 ) addEventHandler("onResourceStart",resourceRoot,function() outputDebugString("Turf system by Enjoy ( manve ) |~| Has been turned on!") -- Please don't remove this =) end ) function info() ---- dont remove this please outputChatBox("------||~ INFO ~||------",source,0,255,0) outputChatBox("Made by:[size=8] BeCool[/size]",source,255,255,0) outputChatBox("Helpers: MTA Community",source,255,255,0) outputChatBox("Testers: BeCooL",source,255,255,0) outputChatBox("Have Fun turfing \"{SMILIES_PATH}/icon_wink.gif\" alt=\"\" title=\"Wink\" />",source,255,255,0) outputChatBox("------||~ END ~||------",source,255,0,0) end addEventHandler("onPlayerJoin", root, info) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == pCuboid ) then if(getElementData(pCuboid,"turfFor")==getTeamFromName(getPlayerTeam(p)) then return end 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 ) setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); setElementData(pCuboid,"turfFor",getPlayerTeam(p)) outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea, false ) end, 10000, 1 ) end 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 ) 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("Wait 5min 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 ) setTimer( function() setRadarAreaColor (pArea2, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea2, false ) end, 10000, 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 ) 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("Wait 5min 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 ) setTimer( function() setRadarAreaColor (pArea3, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea3, false ) end, 10000, 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 ) 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("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 ) setTimer( function() setRadarAreaColor (pArea4, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea4, false ) end, 10000, 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 ) end end ) ------------------------------ function info() ---- dont remove this please outputChatBox("------||~ INFO ~||------",source,0,255,0) outputChatBox("Made by: BeCool",source,255,255,0) outputChatBox("Helpers: MTA Community",source,255,255,0) outputChatBox("Testers: BeCooL",source,255,255,0) outputChatBox("Have Fun turfing \"{SMILIES_PATH}/icon_wink.gif\" alt=\"\" title=\"Wink\" />",source,255,255,0) outputChatBox("------||~ END ~||------",source,255,0,0) end addEventHandler("onPlayerJoin", root, info) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == mohamad00 ) then outputChatBox("------||~ INFO ~||------", p, 0,255,0) outputChatBox("Turf owners: coming soon!", p, 255,255,0) outputChatBox("Wait 5min to take turf.", p, 255,255,0) outputChatBox("------||~ END ~||------", p, 255,0,0) setRadarAreaFlashing( pArea00, true ) local pTeam = getPlayerTeam( p ) -- source is the col shape, you should use 'p', the player arg local iR2, iG2, iB2 = getTeamColor( pTeam00 ) if givePlayerMoney( p, 5000 ) then removeEventHandler( "onColShapeHit", root) setTimer( function() setRadarAreaColor (pArea00, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea00, false ) end, 10000, 1 ) end end else outputChatBox("Get in a group first!",p, 255, 0, 0) end end ) addEventHandler( 'onColShapeLeave', root, function( ) if( source == mohamad00 ) then setRadarAreaFlashing( pArea00, false ) end end ) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == mohamad01 ) then outputChatBox("------||~ INFO ~||------", p, 0,255,0) outputChatBox("Turf owners: coming soon!", p, 255,255,0) outputChatBox("Wait 5min to take turf.", p, 255,255,0) outputChatBox("------||~ END ~||------", p, 255,0,0) setRadarAreaFlashing( pArea01, true ) local pTeam = getPlayerTeam( p ) -- source is the col shape, you should use 'p', the player arg local iR2, iG2, iB2 = getTeamColor( pTeam01 ) setTimer( function() setRadarAreaColor (pArea01, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea01, false ) end, 10000, 1 ) end else outputChatBox("Get in a group first!",p, 255, 0, 0) end end ) addEventHandler( 'onColShapeLeave', root, function( ) if( source == mohamad01 ) then Edited December 5, 2012 by Guest Link to comment
./BlackBird# Posted December 5, 2012 Share Posted December 5, 2012 root شال لان في السيرفر يزيد ارقمنت لمين تطلع الرساله اما كلنت يروح ذذ الارقمنت و يطلع للاعب نفسه Link to comment
BeCooL Posted December 6, 2012 Author Share Posted December 6, 2012 ي شباب هذا كود تلوين الكلام في الشات سويته سيرفر ضبط بس لما حطيته كلنت صار الكود يطلع والكلام مو ملون وش اغير فيه ؟ outputChatBox("#7CFC00 BeCooL ", root, 255, 255, 255, true) outputChatBox("#7CFC00 BeCooL",255,255,255,true) برٍسّتِيًج يً رٍيًتِ تِوَضح لِه شنوَ سّوَوَيًتِ =) بعّدِيًن فيً سّؤآلِ يًدِوَرٍ فيً رٍآسّيً >< ذآ منوَ مسّوَيً ذآ آلِموَدِ ؟ local pArea = createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ) local pArea2 = createRadarArea( 2488.8793945313, 680.78289794922, 250, 130, 0, 255, 0, 175 ) 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, 0, 255, 0, 175 ) local pCuboid3 = createColCuboid( 1856.2864990234, 627.07629394531, 9, 138.25, 152.75, 30 ) local pArea4 = createRadarArea( 1577, 663, 180, 130, 0, 255, 0, 175 ) local pCuboid4 = createColCuboid( 1576.8956298828, 662.84362792969, 9.671875, 181, 120.5, 30 ) local pArea4 = createRadarArea( 2778, 834, 110, 190, 0, 255, 0, 175 ) local pCuboid4 = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375, 113.5, 188, 30 ) local mohamad00 = createColCuboid( 2238.4790039063, 2723.9309082031, 9.6484375, 113.5, 188, 30 ) local pArea00 = createRadarArea( 2235, 2720, 200, 90, 0, 255, 0, 175 ) local mohamad01 = createColCuboid( 2497.9584960938, 2690.1040039063, 9.6484375, 113.5, 188, 30 ) local pArea01 = createRadarArea( 2494, 2687, 100, 200, 0, 255, 0, 175 ) addEventHandler("onResourceStart",resourceRoot,function() outputDebugString("Turf system by Enjoy ( manve ) |~| Has been turned on!") -- Please don't remove this =) end ) function info() ---- dont remove this please outputChatBox("------||~ INFO ~||------",source,0,255,0) outputChatBox("Made by:[size=8] BeCool[/size]",source,255,255,0) outputChatBox("Helpers: MTA Community",source,255,255,0) outputChatBox("Testers: BeCooL",source,255,255,0) outputChatBox("Have Fun turfing \"{SMILIES_PATH}/icon_wink.gif\" alt=\"\" title=\"Wink\" />",source,255,255,0) outputChatBox("------||~ END ~||------",source,255,0,0) end addEventHandler("onPlayerJoin", root, info) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == pCuboid ) then if(getElementData(pCuboid,"turfFor")==getTeamFromName(getPlayerTeam(p)) then return end 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 ) setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); setElementData(pCuboid,"turfFor",getPlayerTeam(p)) outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea, false ) end, 10000, 1 ) end 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 ) 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("Wait 5min 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 ) setTimer( function() setRadarAreaColor (pArea2, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea2, false ) end, 10000, 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 ) 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("Wait 5min 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 ) setTimer( function() setRadarAreaColor (pArea3, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea3, false ) end, 10000, 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 ) 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("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 ) setTimer( function() setRadarAreaColor (pArea4, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea4, false ) end, 10000, 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 ) end end ) ------------------------------ function info() ---- dont remove this please outputChatBox("------||~ INFO ~||------",source,0,255,0) outputChatBox("Made by: BeCool",source,255,255,0) outputChatBox("Helpers: MTA Community",source,255,255,0) outputChatBox("Testers: BeCooL",source,255,255,0) outputChatBox("Have Fun turfing \"{SMILIES_PATH}/icon_wink.gif\" alt=\"\" title=\"Wink\" />",source,255,255,0) outputChatBox("------||~ END ~||------",source,255,0,0) end addEventHandler("onPlayerJoin", root, info) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == mohamad00 ) then outputChatBox("------||~ INFO ~||------", p, 0,255,0) outputChatBox("Turf owners: coming soon!", p, 255,255,0) outputChatBox("Wait 5min to take turf.", p, 255,255,0) outputChatBox("------||~ END ~||------", p, 255,0,0) setRadarAreaFlashing( pArea00, true ) local pTeam = getPlayerTeam( p ) -- source is the col shape, you should use 'p', the player arg local iR2, iG2, iB2 = getTeamColor( pTeam00 ) if givePlayerMoney( p, 5000 ) then removeEventHandler( "onColShapeHit", root) setTimer( function() setRadarAreaColor (pArea00, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea00, false ) end, 10000, 1 ) end end else outputChatBox("Get in a group first!",p, 255, 0, 0) end end ) addEventHandler( 'onColShapeLeave', root, function( ) if( source == mohamad00 ) then setRadarAreaFlashing( pArea00, false ) end end ) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == mohamad01 ) then outputChatBox("------||~ INFO ~||------", p, 0,255,0) outputChatBox("Turf owners: coming soon!", p, 255,255,0) outputChatBox("Wait 5min to take turf.", p, 255,255,0) outputChatBox("------||~ END ~||------", p, 255,0,0) setRadarAreaFlashing( pArea01, true ) local pTeam = getPlayerTeam( p ) -- source is the col shape, you should use 'p', the player arg local iR2, iG2, iB2 = getTeamColor( pTeam01 ) setTimer( function() setRadarAreaColor (pArea01, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea01, false ) end, 10000, 1 ) end else outputChatBox("Get in a group first!",p, 255, 0, 0) end end ) addEventHandler( 'onColShapeLeave', root, function( ) Link to comment
Blaawee Posted December 6, 2012 Share Posted December 6, 2012 ممين صصآحب الموضوع الححين !! مدري شفيك ججآلس تخبص شكلك معطيهآ =) Link to comment
BeCooL Posted December 6, 2012 Author Share Posted December 6, 2012 ممين صصآحب الموضوع الححين !! مدري شفيك ججآلس تخبص شكلك معطيهآ =) رككز شوي صاحب موضوع الاحتلال اسمه سوسو مدري شنو Link to comment
Blaawee Posted December 6, 2012 Share Posted December 6, 2012 outputChatBox("Made by: BeCool",source,255,255,0) والكود من صنع مين =) Link to comment
BeCooL Posted December 6, 2012 Author Share Posted December 6, 2012 outputChatBox("Made by: BeCool",source,255,255,0) والكود من صنع مين =) انت وش تقصد ؟ تقصد ان مود الاحتلال لي ؟ Link to comment
iPrestege Posted December 6, 2012 Share Posted December 6, 2012 ممين صصآحب الموضوع الححين !! مدري شفيك ججآلس تخبص شكلك معطيهآ =) 1- BeCool 2- SOSO < هو اللي يجي وياخذ الاكواد من موضوع الرججال ذآ Link to comment
Blaawee Posted December 6, 2012 Share Posted December 6, 2012 outputChatBox("Made by: BeCool",source,255,255,0) والكود من صنع مين =) انت وش تقصد ؟ تقصد ان مود الاحتلال لي ؟ ممين صصآحب الموضوع الححين !! مدري شفيك ججآلس تخبص شكلك معطيهآ =) 1- BeCool 2- SOSO < هو اللي يجي وياخذ الاكواد من موضوع الرججال ذآ ي شباب هذا كود تلوين الكلام في الشات سويته سيرفر ضبط بس لما حطيته كلنت صار الكود يطلع والكلام مو ملون وش اغير فيه ؟ outputChatBox("#7CFC00 BeCooL ", root, 255, 255, 255, true) outputChatBox("#7CFC00 BeCooL",255,255,255,true) برٍسّتِيًج يً رٍيًتِ تِوَضح لِه شنوَ سّوَوَيًتِ =) بعّدِيًن فيً سّؤآلِ يًدِوَرٍ فيً رٍآسّيً >< ذآ منوَ مسّوَيً ذآ آلِموَدِ ؟ local pArea = createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ) local pArea2 = createRadarArea( 2488.8793945313, 680.78289794922, 250, 130, 0, 255, 0, 175 ) 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, 0, 255, 0, 175 ) local pCuboid3 = createColCuboid( 1856.2864990234, 627.07629394531, 9, 138.25, 152.75, 30 ) local pArea4 = createRadarArea( 1577, 663, 180, 130, 0, 255, 0, 175 ) local pCuboid4 = createColCuboid( 1576.8956298828, 662.84362792969, 9.671875, 181, 120.5, 30 ) local pArea4 = createRadarArea( 2778, 834, 110, 190, 0, 255, 0, 175 ) local pCuboid4 = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375, 113.5, 188, 30 ) local mohamad00 = createColCuboid( 2238.4790039063, 2723.9309082031, 9.6484375, 113.5, 188, 30 ) local pArea00 = createRadarArea( 2235, 2720, 200, 90, 0, 255, 0, 175 ) local mohamad01 = createColCuboid( 2497.9584960938, 2690.1040039063, 9.6484375, 113.5, 188, 30 ) local pArea01 = createRadarArea( 2494, 2687, 100, 200, 0, 255, 0, 175 ) addEventHandler("onResourceStart",resourceRoot,function() outputDebugString("Turf system by Enjoy ( manve ) |~| Has been turned on!") -- Please don't remove this =) end ) function info() ---- dont remove this please outputChatBox("------||~ INFO ~||------",source,0,255,0) outputChatBox("Made by:[size=8] BeCool[/size]",source,255,255,0) outputChatBox("Helpers: MTA Community",source,255,255,0) outputChatBox("Testers: BeCooL",source,255,255,0) outputChatBox("Have Fun turfing \"{SMILIES_PATH}/icon_wink.gif\" alt=\"\" title=\"Wink\" />",source,255,255,0) outputChatBox("------||~ END ~||------",source,255,0,0) end addEventHandler("onPlayerJoin", root, info) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == pCuboid ) then if(getElementData(pCuboid,"turfFor")==getTeamFromName(getPlayerTeam(p)) then return end 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 ) setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); setElementData(pCuboid,"turfFor",getPlayerTeam(p)) outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea, false ) end, 10000, 1 ) end 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 ) 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("Wait 5min 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 ) setTimer( function() setRadarAreaColor (pArea2, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea2, false ) end, 10000, 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 ) 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("Wait 5min 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 ) setTimer( function() setRadarAreaColor (pArea3, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea3, false ) end, 10000, 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 ) 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("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 ) setTimer( function() setRadarAreaColor (pArea4, iR2, iG2, iB2, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea4, false ) end, 10000, 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 ) end end ) ------------------------------ function info() ---- dont remove this please outputChatBox("------||~ INFO ~||------",source,0,255,0) outputChatBox("Made by: BeCool",source,255,255,0) outputChatBox("Helpers: MTA Community",source,255,255,0) outputChatBox("Testers: BeCooL",source,255,255,0) outputChatBox("Have Fun turfing \"{SMILIES_PATH}/icon_wink.gif\" alt=\"\" title=\"Wink\" />",source,255,255,0) outputChatBox("------||~ END ~||------",source,255,0,0) end addEventHandler("onPlayerJoin", root, info) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == mohamad00 ) then outputChatBox("------||~ INFO ~||------", p, 0,255,0) outputChatBox("Turf owners: coming soon!", p, 255,255,0) outputChatBox("Wait 5min to take turf.", p, 255,255,0) outputChatBox("------||~ END ~||------", p, 255,0,0) setRadarAreaFlashing( pArea00, true ) local pTeam = getPlayerTeam( p ) -- source is the col shape, you should use 'p', the player arg local iR2, iG2, iB2 = getTeamColor( pTeam00 ) if givePlayerMoney( p, 5000 ) then removeEventHandler( "onColShapeHit", root) setTimer( function() setRadarAreaColor (pArea00, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea00, false ) end, 10000, 1 ) end end else outputChatBox("Get in a group first!",p, 255, 0, 0) end end ) addEventHandler( 'onColShapeLeave', root, function( ) if( source == mohamad00 ) then setRadarAreaFlashing( pArea00, false ) end end ) addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == mohamad01 ) then outputChatBox("------||~ INFO ~||------", p, 0,255,0) outputChatBox("Turf owners: coming soon!", p, 255,255,0) outputChatBox("Wait 5min to take turf.", p, 255,255,0) outputChatBox("------||~ END ~||------", p, 255,0,0) setRadarAreaFlashing( pArea01, true ) local pTeam = getPlayerTeam( p ) -- source is the col shape, you should use 'p', the player arg local iR2, iG2, iB2 = getTeamColor( pTeam01 ) setTimer( function() setRadarAreaColor (pArea01, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea01, false ) end, 10000, 1 ) end else outputChatBox("Get in a group first!",p, 255, 0, 0) end end ) addEventHandler( 'onColShapeLeave', root, function( ) Link to comment
BeCooL Posted December 6, 2012 Author Share Posted December 6, 2012 ممين صصآحب الموضوع الححين !! مدري شفيك ججآلس تخبص شكلك معطيهآ =) 1- BeCool 2- SOSO < هو اللي يجي وياخذ الاكواد من موضوع الرججال ذآ طيب اخذ اكوادي الله يسامححه وش فيكم علي ؟ Link to comment
Blaawee Posted December 6, 2012 Share Posted December 6, 2012 ممين صصآحب الموضوع الححين !! مدري شفيك ججآلس تخبص شكلك معطيهآ =) 1- BeCool 2- SOSO < هو اللي يجي وياخذ الاكواد من موضوع الرججال ذآ طيب اخذ اكوادي الله يسامححه وش فيكم علي ؟ الله علييكك =) هنآ الزبده =) شلوون مسوي المود ذآ وانت مم تعرف حتى تسوي ايفنت للمآركر والاكوآد القديمه حويس على خبيص =) Link to comment
abu5lf Posted December 6, 2012 Share Posted December 6, 2012 (edited) المود منتشر في المنتدى ولا ادري من صاحبه الاصلي viewtopic.php?f=91&t=48623&p=478695&hilit=%27onColShapeHit%27#p478695 Edited December 6, 2012 by Guest Link to comment
./BlackBird# Posted December 6, 2012 Share Posted December 6, 2012 المود منتشر في المود منتشر في المنتدى ولا ادري من صاحبه الاصليviewtopic.php?f=91&t=48623&p=478695&hilit=%27onColShapeHit%27#p478695 هذا صاحبه https://community.multitheftauto.com/index.php?p= ... ls&id=5606 Link to comment
Blaawee Posted December 6, 2012 Share Posted December 6, 2012 الله ينور عليكم ي شبآب =) Link to comment
BeCooL Posted December 6, 2012 Author Share Posted December 6, 2012 الله علييكك =) هنآ الزبده =) شلوون مسوي المود ذآ وانت مم تعرف حتى تسوي ايفنت للمآركر والاكوآد القديمه حويس على خبيص =) انا قلت مسوي المود ؟؟ الشباب عطوكك صاحبه مو انا اللي مسوي انا اقصد كود تلوين الكلام في الشات فككنا خخلاص Link to comment
BeCooL Posted December 6, 2012 Author Share Posted December 6, 2012 شباب انا مسوي ماركر وابغى الماركر مايسوي شي الا بعد وقت معين كيف اسويها ؟ Link to comment
abu5lf Posted December 6, 2012 Share Posted December 6, 2012 شباب انا مسوي ماركر وابغى الماركر مايسوي شي الا بعد وقت معين كيف اسويها ؟ ورني كود الماركر Link to comment
==>ҭᾄlᾄl Posted December 6, 2012 Share Posted December 6, 2012 setTimer(addEventHandler,10000,1,"onMarkerHit",namem,namef) namem = اسم الماركر namef = اسم الوظيفه Link to comment
BeCooL Posted December 6, 2012 Author Share Posted December 6, 2012 setTimer(addEventHandler,10000,1,"onMarkerHit",namem,namef) namem = اسم الماركر namef = اسم الوظيفه طيب لو بغيتها ككذا كيف ؟ setTimer ( function() end, 10000, 1 ) Link to comment
abu5lf Posted December 6, 2012 Share Posted December 6, 2012 setTimer(addEventHandler,10000,1,"onMarkerHit",namem,namef) namem = اسم الماركر namef = اسم الوظيفه طيب لو بغيتها ككذا كيف ؟ setTimer ( function() addEventHandler( 'onMarkerHit', marker, onHit ) end, 10000, 1 ) تقصد كذا؟ Link to comment
BeCooL Posted December 7, 2012 Author Share Posted December 7, 2012 setTimer(addEventHandler,10000,1,"onMarkerHit",namem,namef) namem = اسم الماركر namef = اسم الوظيفه طيب لو بغيتها ككذا كيف ؟ setTimer ( function() addEventHandler( 'onMarkerHit', marker, onHit ) end, 10000, 1 ) تقصد كذا؟ والله اني مشوش ابغى اذا لمس لاعب الماركر بعد وقت يصير الماركر ينقل يعني اذا لمسه لاعب آخر ينقله هذا الكود marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 0, 0, 255, 255) function theMarker( hitPlayer, matchingDimension ) if (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then setMarkerColor ( marker5, 255, 0, 0, 255 ) setElementPosition ( hitPlayer, 1383.1614990234, -942.83343505859, 2172.8156738281 ) end end addEventHandler( "onMarkerHit", marker5, theMarker ) Link to comment
3NAD Posted December 7, 2012 Share Posted December 7, 2012 -- use setTimer marker5 = createMarker ( 1379.8220214844, -945.32458496094, 2171.8156738281, "cylinder", 2, 0, 0, 255, 255 ) addEventHandler ( "onMarkerHit", marker5, function ( hitPlayer ) if ( getTeamName ( getPlayerTeam ( hitPlayer ) ) == "Criminal" ) then setMarkerColor ( marker5, 255, 0, 0, 255 ) setTimer ( setElementPosition, 5000, 1, hitPlayer, 1383.1614990234, -942.83343505859, 2172.8156738281 ) outputChatBox ( "* Wait 5 Seconds.", hitPlayer, 255, 255, 0, true ) end end ) Link to comment
BeCooL Posted December 7, 2012 Author Share Posted December 7, 2012 -- use setTimer marker5 = createMarker ( 1379.8220214844, -945.32458496094, 2171.8156738281, "cylinder", 2, 0, 0, 255, 255 ) addEventHandler ( "onMarkerHit", marker5, function ( hitPlayer ) if ( getTeamName ( getPlayerTeam ( hitPlayer ) ) == "Criminal" ) then setMarkerColor ( marker5, 255, 0, 0, 255 ) setTimer ( setElementPosition, 5000, 1, hitPlayer, 1383.1614990234, -942.83343505859, 2172.8156738281 ) outputChatBox ( "* Wait 5 Seconds.", hitPlayer, 255, 255, 0, true ) end end ) لا انا ما ابغى بعد وقت بنقل الاعب انا ابغى بعد وقت اذا الاعب دخل الماركر ينقله 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