Jump to content

Blaawee

Members
  • Posts

    857
  • Joined

  • Last visited

Everything posted by Blaawee

  1. لا .. انا قآيلكك انه مسوي فآنكشن محليه function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) يعني رآح تستبدل كل النوآفذ اللي في روت الريسورس الى هآذي الفآنكشن ان شآءالله مفهوم =)
  2. مم رآح تقدر .. لانه مسسوي فآنكشن على انهآ نأفذه =) guiCreateWindow لازم تسوي كل نآفذه لححآل
  3. حبآآل وشو انت الثآآني رآيحين نتسلق جبآل الهمآلايآ ولا الالب =)
  4. شف آلِفرٍق فيً آلِبنق just for laughs: https://www.youtube.com/watch?v=HFHjwuXxBn0 انت في فلسطين ولا ويش؟ LoL =)
  5. شف آلِفرٍق فيً آلِبنق just for laughs: https://www.youtube.com/watch?v=HFHjwuXxBn0
  6. ابلود مخييس داونلود جيد لا تنسى البنق
  7. 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
  8. شرآيكك نصمم لكك المود وانت جآلس مرتآح =)
  9. عندك طريقه انك تشفر المود وتخليه على صيغه اختصآر
  10. "goofie88" name="Sound Panel" version="1.3r" type="script" />
  11. يسلمؤؤ بس وش يسوي ذا الكود مافهمت يآخذ ايدي السيآره المحدةة
  12. Parameters first in onPlayerSpawn is 'PosX' not 'player' Your script is the already in post Solidsnake14. And You Right
  13. addCommandHandler( 'kill', function( player ) setTimer( killPed, 20000, 1, player ) setElementFrozen( player, true ) toggleControl ( player, "fire", false ) end end) addEventHandler ( "onPlayerSpawn", root, function( player ) setElementFrozen ( player, false ) toggleControl ( player, "fire", true ) end )
  14. what's debug say's ? if you don't know what's debug , write this in the console : debugscript 3
  15. try client. addEvent( "onAllHunter",true ) function waiting( ) if drawing == true then setTimer( start_AllHunters, 5000,1 ) else setTimer( start_AllHunters, 50,1 ) end end addEventHandler("onAllHunter", getRootElement(), waiting ) function start_AllHunters( ) removeEventHandler( "onClientRender", getRootElement(), AllHunters ) addEventHandler( "onClientRender", getRootElement(), AllHunters ) setTimer( stop_AllHunters, 5000, 1 ) getTickStart = getTickCount () end function stop_AllHunters() removeEventHandler( "onClientRender", getRootElement(), AllHunters ) end function AllHunters() local getTickNow = getTickCount () - getTickStart if getTickNow <= 1000 then alfa = getTickNow/1000 elseif getTickNow >= 4000 then alfa = (5000-getTickNow)/1000 else alfa = 1 end alfa = alfa * alfa * alfa dxDrawColorText( "Time for a Hunter Fight !", 1, sy / 3 - 1, sx + 1, sy - 1, tocolor( 0, 0, 0, alfa * 200 ), ( 2.5 * sx / 1920 ) * alfa * 1.6, "default-bold", "center", "center", true ) end server. addEvent( "start_AllHunters",true ) addEventHandler("start_AllHunters", getRootElement(), function() triggerClientEvent("AllHunters",getRootElement()) end )
  16. is there any function called ' dxDrawColorText ' ?
  17. you making two event with the same name
×
×
  • Create New...