Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. addEventHandler("onResourceStart", resourceRoot, function() for _,teams in ipairs(getElementsByType("team")) do if getTeamFriendlyFire(teams) == true then setTeamFriendlyFire(teams, false) end end end )
  2. Yes You Can Do It =D . Open MtaServer.conf go to line 205-230 here : -- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more parameter(s). --> "admin" startup="1" protected="0" /> "defaultstats" startup="1" protected="0" /> "helpmanager" startup="1" protected="0" /> "RRr" startup="1" protected="0" /> "mapcycler" startup="1" protected="0" /> "mapmanager" startup="1" protected="0" /> "parachute" startup="1" protected="0" /> "resourcebrowser" startup="1" protected="1" default="true" /> "resourcemanager" startup="1" protected="1" /> "scoreboard" startup="1" protected="0" /> "spawnmanager" startup="1" protected="0" /> "voice" startup="1" protected="0" /> "votemanager" startup="1" protected="0" /> -- play is the default freeroam gamemode. Remove the following line to prevent it from starting. --> "play" startup="1" protected="0" /> if u want to add a resource use this code : "resourceName" startup="1" protected="0" /> then restart you,re server and will satrt auto ..
  3. صحيح بس كنت فاهم الموضوع عكس .
  4. كنت اسويه يوم حطيت submit لقيت ردك اكره هذي الحركه تصدق كتبتة كتابة يعني لو كان فية غلط بسيط كان حطيتة انـت قبلي
  5. اي اذا كنتوا بـ نفس التيم ماراح يجيكم اي شيء من الضربات ذذ
  6. button = guiCreateButton(....) addEventHandler("onClientGUIClick",root, function () if ( source == button ) then guiSetVisible (Window,false) showCursor(false) end end )
  7. ااخوي برستيج ممكن تسويلي مثال كامل الله لايهينك هذا كافي جرب سوية كذا بدون فنكشن وبيشتغل معك -_-" team = createTeam("تجربة ض1") setTeamFriendlyFire(team,true) سيرفر ذذ
  8. setTeamFriendlyFire(التيم,true)
  9. Have you noticed that object are table not element? @SKIPPER, As Castro said you forgot the Bone ID. Sorry, i was on a hurry .
  10. شوف موضوع احمد في المساهامات ذذ
  11. createObject moveObject addCommandHandler
  12. object = {} addEvent("xxx", true) addEventHandler("xxx", root, function() if isElement(object) then destroyElement(object) end local x, y, z = getElementPosition(source) local object = createObject( id, x, y, z ) exports.bone_attach:attachElementToBone(object, source, 0.025, -0.01, 0.815, 0, 0, 180) attachElements(object,source, 0.02, -0.01, 0.815, 0, 0, 180) end ) addEventHandler("onPlayerQuit", root, function() if isElement(object) then destroyElement(object) end end )
  13. تقدر تسوي كوماند كلمة بـ اف 8 ذذ
  14. لا تحتاج لـ اضافة الشخصية اقصد الـ Ped وتسوي الصور .. ذذ
  15. object = {} addEvent("xxx", true) addEventHandler("xxx", root, function(plr) if ( getElementType (plr) == "player" ) then if isElement(object) then destroyElement(object) end local x, y, z = getElementPosition(plr) local object = createObject( model, x, y, z ) attachElements(object,plr, 0.02, -0.01, 0.815, 0, 0, 180) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(object) then destroyElement(object) end end )
  16. في الكونسول debugscript 3
  17. object = {} addEvent("xxx", true) addEventHandler("xxx", root, function(model) if isElement(object) then destroyElement(object) end local x, y, z = getElementPosition( source ) local object = createObject( model, x, y, z ) exports.bone_attach:attachElementToBone(object, source, 0.025, -0.01, 0.815, 0, 0, 180) attachElements(object, source, 0.02, -0.01, 0.815, 0, 0, 180) end) addEventHandler("onPlayerQuit", root, function() if isElement(object) then destroyElement(object) end end)
×
×
  • Create New...