Jump to content

Sora

Members
  • Posts

    698
  • Joined

  • Last visited

Everything posted by Sora

  1. thanks for reply i'll try hard to make it .. honestly i thought that it is so hard from the beginning
  2. thanks but , it's complex somehow to edit the race gamemode and making it play the map for chosen player(s)
  3. yea , but i mean when you start map it's will spawn all players into this map so .. the question is click here and read carefully
  4. hi .. i wanted to create multiple gamemodes on one server but i'm confused with mapmanager i'm planning to edit the race gamemode .. to be played for some players the players who wrote /race for example i just want to know is it possible to let the race map be played for a chosen player or players and not for all and if it does , how to do that , what should i edit ? ^^
  5. addCommandHandler("gsb", function (NoOb) if isPedInVehicle (NoOb) then local NoObCar = getPedOccupiedVehicle(NoOb) createBlipAttachedTo(NoObCar,55) else outputChatBox("* You should be inside the vehicle",NoOb,255,0,0,true) end end)
  6. getPedOccupiedVehicle createBlipAttachedTo
  7. https://wiki.multitheftauto.com/wiki/TextCreateTextItem
  8. local pArea = createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ) local pCuboid = createColCuboid( 2133.1950683594, 633.66455078125, 10, 197.5, 92, 30 ) setElementData(pCuboid,'TurfFor','none') addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == pCuboid ) then if(getElementData(pCuboid,'TurfFor')==getTeamName(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 ) timer = setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); setElementData(pCuboid,"TurfFor",getTeamName(getPlayerTeam(p))) outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea, false ) end, 10000, 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 ) killTimer ( timer ) end end end)
  9. نفس الفريق يحتل مرتين انا صلحت الخطأ الي فوق .. بس خاش عرض.. لول خلاص مجنون فيك جاء
  10. local pArea = createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ) local pCuboid = createColCuboid( 2133.1950683594, 633.66455078125, 10, 197.5, 92, 30 ) setElementData(pCuboid,'TurfFor','none') addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == pCuboid ) then if(getElementData(pCuboid,'TurfFor')==getTeamName(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",getTeamName(getPlayerTeam(p))) outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea, false ) end, 10000, 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 ) end end )
  11. يسلمؤ ع النصيحه ^^ بس احب اخلي السكربتات الي بعملها open-source
  12. https://community.multitheftauto.com/ind ... ls&id=6097 https://community.multitheftauto.com/ind ... ls&id=6096 https://community.multitheftauto.com/ind ... ls&id=6093 Stolen ( or re-uploaded with changing copyrights ) DONE
  13. يب داري بس هو يعمل الملف اول ماتشغل سكربت من السكربتات الي عندك بالسيرفر ويضيفه للملف ^^
  14. أها يسلمؤؤ انا لاحظت الترتيب تغير واضفت هاذي else xmlCreateFile("resources.xml","resources") همسة :انا ماهتم بتنظيم الكود اذا سويت سكربت خخخخـ
  15. يمكن يفيدك viewtopic.php?f=148&t=45737
  16. منورين الموضوع تيتي انا حطيت الكتابه بالشات اول شيء عشان اجرب السكربت ^^
  17. ^ عذراً حمآس زآيدد زي مآقآل سعد ينطبق على الserver side وبس
×
×
  • Create New...