ALw7sH Posted January 24, 2013 Share Posted January 24, 2013 السسلام عليكم ورحمةة الله وبركاته اسسف على طلباتي الكثير بس السيرفر صيانه ولازم اكمل كل شي عشان اقدر افتحه ف مود الاحتلال عشان تحتل لازم تكون ف تيم local pTeam = getPlayerTeam( p ) -- source is the col shape, you should use 'p', the player arg local iR, iG, iB = getTeamColor( pTeam ) انا مركب مود gangs ابي الاحتلال يكون من العصابات مو من التيمات اتتمنى انكم فهمتوني Link to comment
ALw7sH Posted January 24, 2013 Author Share Posted January 24, 2013 gangs? عصابات = gang system Link to comment
TAPL Posted January 24, 2013 Share Posted January 24, 2013 قصدك ذا https://community.multitheftauto.com/ind ... ls&id=1514 ? تقدر تجيب عصابه اللاعب من الألمنت داتا local gangName = getElementData(player, "gang") Link to comment
iPrestege Posted January 24, 2013 Share Posted January 24, 2013 gangs? عصابات = gang system يالخوي! ما نفهم من الباب للطاقة @ اطرح الكود او المود اللي تبي تعدلة ؟؟ Link to comment
ALw7sH Posted January 24, 2013 Author Share Posted January 24, 2013 gangs? عصابات = gang system يالخوي! ما نفهم من الباب للطاقة @ اطرح الكود او المود اللي تبي تعدلة ؟؟ 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 ) اخوي هاذا مود احتلال بس المود عشان تحتل لازم انت تكون في team بس لاكن انا مركب gang system (مود صنع عصابه) وابي العصابات اهي الي تحتل Link to comment
ALw7sH Posted January 25, 2013 Author Share Posted January 25, 2013 هاذي الاكواد الي ابيها تتعدل local pTeam = getPlayerTeam( p ) local iR, iG, iB = getTeamColor( pTeam ) انا غيرت الاول وشكرا الى اخوي تابل local gangName = getElementData(player, "gang") بس لاكن الثاني الي عشان يحط لون الاحتلال كيف اخليه ياخذ على لون العصابه ماهو لون التيم Link to comment
TAPL Posted January 25, 2013 Share Posted January 25, 2013 جرب local gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) Link to comment
ALw7sH Posted January 25, 2013 Author Share Posted January 25, 2013 جرب local gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) تسسلم اخوي تابل بس المود هاذهو الي حطيته وقلت لي هاذه او لا ف التاب يكتب Group يعني لازم اغير كلمة gabf الى Group ولا اخليها عادي؟ Link to comment
TAPL Posted January 25, 2013 Share Posted January 25, 2013 .friendlyName لانه يستخدم معه الـ gang بس أسم الألمنت داتا حقه هو Group عارف أنه يكتب في التاب Link to comment
ALw7sH Posted January 27, 2013 Author Share Posted January 27, 2013 جرب local gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) اخوي تابل غيرت الاكواد بس ماتغير شي الاحتلال هاذهو لازم بتيم هاذي كل الاكواد تقدر تعدلها ؟ 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 ) Link to comment
TAPL Posted January 27, 2013 Share Posted January 27, 2013 جرب local gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) اخوي تابل غيرت الاكواد بس ماتغير شي الاحتلال هاذهو لازم بتيم حط كودك الي غيرته Link to comment
ALw7sH Posted January 27, 2013 Author Share Posted January 27, 2013 local iR, iG, iB = getTeamColor( pTeam ) pArea1Timer = setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100); هاذا بددلته بكودك Link to comment
ALw7sH Posted January 27, 2013 Author Share Posted January 27, 2013 حط الكود كامل 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 gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) 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 gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) 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 gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) 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 gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) 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 ) Link to comment
TAPL Posted January 27, 2013 Share Posted January 27, 2013 كوبي بست ولا تعبت نفسك تغير أسماء المتغيرات هو اللاعب المطلوب الي تبي تجيب اسم القروب حقه player لاحظ أن p اللاعب في كودك هو p إلى player يعني لازم تغير iR, iG, iB و لاحظ أن الألوان في كودك أنت حاطها r, g, b فلازم تغيرها و تحطها local gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) pArea1Timer = setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100) طبعاً لاحظ أن في كود يتأكد من ان انت في تيم المفروض تخليه يتأكد أن أنت في عصابه أستبدل الكود if (getPlayerTeam( p )) then بـ if (getElementData(p, "gang")) then Link to comment
ALw7sH Posted January 27, 2013 Author Share Posted January 27, 2013 كوبي بست ولا تعبت نفسك تغير أسماء المتغيراتهو اللاعب المطلوب الي تبي تجيب اسم القروب حقه player لاحظ أن p اللاعب في كودك هو p إلى player يعني لازم تغير iR, iG, iB و لاحظ أن الألوان في كودك أنت حاطها r, g, b فلازم تغيرها و تحطها local gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors) pArea1Timer = setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100) طبعاً لاحظ أن في كود يتأكد من ان انت في تيم المفروض تخليه يتأكد أن أنت في عصابه أستبدل الكود if (getPlayerTeam( p )) then بـ if (getElementData(p, "gang")) then تسسسسلم ششككرا ياخخي كلمة ششكرا ماتكفي Link to comment
ALw7sH Posted January 27, 2013 Author Share Posted January 27, 2013 تابل عندي سؤال بسيط اذا كان 600000 = عشر دقايق يعني 5 دقايق تساوي كم؟ وتسسلم مقدما Link to comment
TAPL Posted January 27, 2013 Share Posted January 27, 2013 تابل عندي سؤال بسيط اذا كان 600000 = عشر دقايق يعني 5 دقايق تساوي كم؟ وتسسلم مقدما 5*60*1000 Link to comment
ALw7sH Posted January 27, 2013 Author Share Posted January 27, 2013 تابل عندي سؤال بسيط اذا كان 600000 = عشر دقايق يعني 5 دقايق تساوي كم؟ وتسسلم مقدما 5*60*1000 اكتبها كذا او اسوي لها عملية ضرب؟ Link to comment
TAPL Posted January 27, 2013 Share Posted January 27, 2013 5*60*1000 أكتبها كذا السكربت بيسوي العملية ما يحتاج تجيب آلة حاسبة Link to comment
ALw7sH Posted January 27, 2013 Author Share Posted January 27, 2013 5*60*1000 أكتبها كذا السكربت بيسوي العملية ما يحتاج تجيب آلة حاسبة اسمع ركبته صار تمام بس انتضر انتضر وتكمل 5 دقايق وتكمل 10 دقايق ولا يكمل الاحتلال اسسف على اسسئلتي الكثيره تقدر تعطيني مسن او ساكيب او شي حقك؟ Link to comment
Booo Posted January 27, 2013 Share Posted January 27, 2013 تابل عندي سؤال بسيط اذا كان 600000 = عشر دقايق يعني 5 دقايق تساوي كم؟ وتسسلم مقدما 5*60*1000 اكتبها كذا او اسوي لها عملية ضرب؟ !! كورس سريع للساعات الساعه فيها 60 دقيقه الدقيقه فيها 60 ثانيه setTimer < يحسب الوقت بالجزء من الثانيه يعني الثانيه الوحده تساوي 1000 تبي ثانيتين ؟ أضرب 1000 * بـ 2 > 2000 تبي 30 ثانيه الي هي نص دقيقه ؟ أضرب 30 * 1000 < نص دقيقه 30000 تبي دقيقه ؟ اضرب 60 في 1000 60000 < تبي ساعه ؟ اضرب < دقيقه 60000 60 < ستين دقيقه الي هي الساعه 3600000 < Link to comment
iPrestege Posted January 28, 2013 Share Posted January 28, 2013 اسهل طريقة سورآ آول تكلم رد علي بـ موضوع : تروح لـ جوجل تكتب : 10 minute = milliseconds راح يظهر معك الناتج = 10 minutes = 600 000 milliseconds عدلها عشان تشيل المسافة ^ 10 minutes = 600000 milliseconds = 600000 جربها وشوف ^ 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