Jump to content

BeCooL

Members
  • Posts

    292
  • Joined

  • Last visited

Everything posted by BeCooL

  1. ظبط بس واجهتني مشكله ان الاعب اذا نزل وركب مره ثانيه يصير ماركر ثاني انا اسئلت من قبل نفس المشكله وجاوب علي عناد وعدلها لي ولا فهمت وش سوى ياريت اللي يعدل لي الكود يفهمني وش سوى يعني تبيه الماركر يتنفذ مرة وحدة ؟ يب
  2. ظبط بس واجهتني مشكله ان الاعب اذا نزل وركب مره ثانيه يصير ماركر ثاني انا اسئلت من قبل نفس المشكله وجاوب علي عناد وعدلها لي ولا فهمت وش سوى ياريت اللي يعدل لي الكود يفهمني وش سوى
  3. اعرف الكود لو تلاحظ موجود في الكود حقي بس في اي سطر استخدمه ماني عارف سطر 14 غير root الى source واذا ماظبط جرب تغيره الى vehicle ما ضبط
  4. اعرف الكود لو تلاحظ موجود في الكود حقي بس في اي سطر استخدمه ماني عارف
  5. ابغى اسوي مود hijak حق cit عدل اللي تقول عنه لان اذا الاعب لمس الماركر تختفي سيارته وتطلع سياره محل ثاني بس المشكله ان الماركر تطلع لكل السيرفر انا ابغاها للاعب اللي في السياره
  6. marker5 = createMarker(1379.8,-945.3,2171.8, "cylinder", 2, 0, 0, 255, 255) function theMarker(hitPlayer) if not canEnter and not isTimer(Timer) then Timer = setTimer(function() canEnter = true end, 60000, 1) return end if (getTeamName(getPlayerTeam(hitPlayer)) == "Criminal") and canEnter then setMarkerColor(marker5, 255, 0, 0, 255) setElementPosition(hitPlayer, 1383.16, -942.83, 2172.81) end end addEventHandler("onMarkerHit", marker5, theMarker) يسلمؤؤ ي شباب بالله ابغى محد يقدر يشوف الماركر والبليب الا اللي في السياره حاولت فيها بأكثر من طريقة ولا ضبط هذا الكود setTimer ( function() bab = createVehicle ( 411, -0.77234786748886, 0.1968837082386, 3.1171875 ) fg = createBlipAttachedTo ( bab, 53 ) outputChatBox ( "#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true ) setVehicleDamageProof ( bab, true ) setElementVisibleTo ( blip, root, false ) end, 5000, 1 ) function car ( vehicle ) if vehicle == bab then cac = createMarker ( 14.138179779053, 14.694575309753, 2.1171875, "cylinder", 5, 0, 0, 205, 170 ) blip = createBlip ( 14.138179779053 , 14.694575309753 , 3.1171875 , 51 ) setPlayerWantedLevel (source, 1) setElementVisibleTo ( blip, root, true ) end end addEventHandler ( "onPlayerVehicleEnter", root, car ) function ggg ( hitElement ) if ( source == cac ) then givePlayerMoney ( hitElement, 46000 ) setPedArmor ( hitElement, 60 ) triggerClientEvent ( hitElement, "playSoundC", hitElement ) destroyElement ( bab ) destroyElement ( cac ) destroyElement ( blip ) destroyElement ( fg ) mohamad1 = createVehicle(402, 29.196004867554, 18.353984832764, 3.1171875) fg2 = createBlipAttachedTo ( mohamad1, 53 ) end end addEventHandler ( "onMarkerHit", root, ggg ) function carr ( vehicle ) if vehicle == mohamad1 then mohamad2 = createMarker (25.237403869629, -48.512912750244, 2.1171875, "cylinder", 5, 0, 0, 205, 170) blip2 = createBlip ( 25.237403869629 , -48.512912750244 , 2.1171875 , 51 ) setPlayerWantedLevel (source, 1) end end addEventHandler ( "onPlayerVehicleEnter", root, carr ) function ggh ( hitElement ) if ( source == mohamad2 ) then givePlayerMoney ( hitElement, 46000 ) setPedArmor ( hitElement, 60 ) triggerClientEvent ( hitElement, "playSoundC", hitElement ) destroyElement ( mohamad1 ) destroyElement ( mohamad2 ) destroyElement ( blip2 ) destroyElement ( fg2 ) mohamad1 = createVehicle(402, 29.196004867554, 18.353984832764, 3.1171875) end end addEventHandler ( "onMarkerHit", root, ggh )
  7. جرب theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) addEventHandler ( "onMarkerHit", theMarker, function MarkerHit( hitPlayer ) if (getTeamName(getPlayerTeam(hitPlayer))=="M.H")then وش تبي يصير اذا وقف الاعب على الماكر-- end )
  8. ما فهمت وش وظيفتها
  9. طيب انا سويته ككذا وش الخطأ اللي فيه ؟ 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 ) setTimer ( function() destroyElement ( marker5 ) marker6 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 0, 255, 0, 255) end, 10000, 1 ) removeEventHandler( "onMarkerHit", marker5, theMarker ) end end addEventHandler( "onMarkerHit", marker5, theMarker ) function b1 (hitPlayer , matchingDimension) if (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then setElementPosition ( hitPlayer, 1383.1614990234, -942.83343505859, 2172.8156738281 ) end end addEventHandler( "onMarkerHit", marker6, b1 )
  10. مثال : البنك حق جراند العرب قبل 10 دقائق الماركر ينقل
  11. لا انا ما ابغى بعد وقت بنقل الاعب انا ابغى بعد وقت اذا الاعب دخل الماركر ينقله
  12. طيب لو بغيتها ككذا كيف ؟ 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 )
  13. طيب لو بغيتها ككذا كيف ؟ setTimer ( function() end, 10000, 1 )
  14. شباب انا مسوي ماركر وابغى الماركر مايسوي شي الا بعد وقت معين كيف اسويها ؟
  15. انت تبي ترجعها زي اول ؟ fadeCamera(player, true)
  16. انا قلت مسوي المود ؟؟ الشباب عطوكك صاحبه مو انا اللي مسوي انا اقصد كود تلوين الكلام في الشات فككنا خخلاص
  17. 1- BeCool 2- SOSO < هو اللي يجي وياخذ الاكواد من موضوع الرججال ذآ طيب اخذ اكوادي الله يسامححه وش فيكم علي ؟
  18. انت وش تقصد ؟ تقصد ان مود الاحتلال لي ؟
  19. رككز شوي صاحب موضوع الاحتلال اسمه سوسو مدري شنو
  20. 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( )
  21. outputChatBox("#7CFC00 BeCooL",255,255,255,true) يسلمؤؤ
  22. ي شباب هذا كود تلوين الكلام في الشات سويته سيرفر ضبط بس لما حطيته كلنت صار الكود يطلع والكلام مو ملون وش اغير فيه ؟ outputChatBox("#7CFC00 BeCooL ", root, 255, 255, 255, true)
  23. ياخخي حاولت فيه ولا ضبط اسححب على المود يعني ؟ ابغى مساعده طيب ليش تحط المود كامل حط الجزء و احنا نساعدك لان فيه مرات يصير شي له علاقه ولا حطيته وبعدين مايضبط فهمت علي ؟
×
×
  • Create New...