Jump to content

GamerDeMTA

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by GamerDeMTA

  1. Put a video when a player joins the server with a MP4 or that formats or only with shaders or what?
  2. Thanks and can you say me how to do this? I want to put when a player joins/respawns in freeroam he has skin, but I put the skin ID 1, but now I want to put the skin ID 1 and 2. See line 19 local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,1) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end )
  3. Can you give me an example? because you said a GUI but I want an image
  4. Can you give me an example with Skins ID 1 and 2?
  5. I need this: When a player has 10 of health or less, It shows him in the screen a image called for example "image.png", in all the screen
  6. See this (LINE 19): local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,SkinID) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) I changed it to the Skin 1 instead random, and now I want to put the Skin ID 1 and 2, how to do?
  7. No, I've freeroam and changed it to the Skin ID "0" when you enter/spawn, but I want to put Only 2 Skins, more than that one. But not randomly
  8. I haven't the file "bookmarks.xml", how I add the default bookmarks? Thanks.
  9. I changed in the LUA which skin the players have when they Join/Respawn, but I want more skins than one
  10. I changed, but I can put more than 1 skin for the players? Cuz I only chose 1 but I want more
  11. and how to do for Receive a new skin when you hit the marker?
  12. Also how to set an Interior to teleport to a INT?
  13. marker = createMarker ( -651.29998779297,954.29998779297,11.10000038147, "cylinder", 2, 0, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType(player) == "player") then setElementPosition (player,-699.29998779297,964.09997558594,121.19999694824) end end )
  14. PLAY Contains these 3 files: MAP. broph.lua local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) meta "BrophY" description="A playtest/freeroam mode" version="1" type="gamemode" /> resource="freeroam" /> resource="spawnmanager" /> "*spawnreset" value="onSpawn" friendlyname="Spawn Reset" accept="onSpawn,onServerEmpty,onServerStart" desc="When should a new spawnpoint be chosen?" /> "broph.map" /> And Freeroam meta -- arc_'s Freeroam script --> -- You are allowed to modify this resource or add functionality to it. --> -- You may use the modified resource in your server and redistribute it. --> -- However, the original credits and this license must always stay intact. --> -- Also, give your modified resource a different name, like "'s --> -- extended freeroam", to avoid confusion for users. --> "Freeroam GUI" author="arc_" version="1.3.4" />
  15. can someone give me the Script? or is like Music in the maps?
×
×
  • Create New...