Jump to content

Forums

  1. Multi Theft Auto: San Andreas 1.x

    1. Support for MTA:SA 1.x

      HELP! HELP! Need help? Post here.

      54.9k
      posts
    2. User Guides

      These guides are a good place to start learning how to achieve certain things within MTA in an efficient and well mannered way.

      11
      posts
    3. Open Source Contributors

      This space is for contributors to discuss the development of MTA. No user suggestions/support.

      1.3k
      posts
    4. Suggestions

      Suggestions and requests go here. Please note that actual feature requests must be filed on our GitHub.

      7.7k
      posts
    5. Ban appeals

      Use this forum to appeal your GLOBAL MTA:SA bans. Permanent bans only - appeals for timed ones (eg. 24 hours) will be refused.

      Do not use it for appealing server-specific bans as we do not have power over these specific servers.

      4.6k
      posts
  2. General MTA

    1. News

      News and updates on Multi Theft Auto.

      9.8k
      posts
    2. Media

      User-made screens and movies go here.

      4.5k
      posts
    3. Site/Forum/Discord/Mantis/Wiki related

      Share your comments & concerns about our services.

      5.6k
      posts
    4. MTA Chat

      MTA related chat that is NOT support related!

      2.1k
      posts
    5. 330.3k
      posts
  3. MTA Community

    1. Scripting

      All Lua scripting topics related to Multi Theft Auto.

      261.2k
      posts
    2. Maps

      Discussions for maps on various gamemodes.

      13.4k
      posts
    3. Resources

      Everything else about resources.

      28.5k
      posts
    4. Other Creations & GTA modding

      This section includes things such as GUI themes, forum userbars, user-created MTA logos, etc. Also contains topics which cover general GTA modding areas that can be used in MTA, such as modelling.

      2.4k
      posts
    5. Competitive gameplay

      Discussions about various MTA-related competitive gameplay events. Also gang (clan) forums.

      26.7k
      posts
    6. Servers

      Looking for a server to play on? Looking for someone to host your server? Looking for a place to discuss with other server owners? Here's where to look.

      15.6k
      posts
  4. Other

    1. General

      Non-MTA discussions. Anything you want.

      38.1k
      posts
    2. Multi Theft Auto 0.5r2

      Discussion regarding Multi Theft Auto 0.5r2 for GTAIII and Vice City.

      672
      posts
    3. Third party GTA mods

      Showcase for single player mods and requests.

      812
      posts
  5. Archive

    1. 144k
      posts
    2. Trash

      These posts have broken forum rules. They are stored here temporarily so offending users can see what they have done wrong.

      2.5k
      posts
  • Posts

    • addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) setPlayerSkin(source, 170) end end ) function spawn(player) --if not isElement(player) then return end if get("spawnreset") == "onSpawn" then setPlayerSkin(source, 170) spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(322)) setPlayerSkin(source, 170) 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, --Cuando el jugador ingresa al servidor. function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo spawnPlayer (source, 170, 170, 170) setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170) else spawn(source) end end) addEventHandler("onPlayerLogin", root, --cuando el jugador inicia sesión en su cuenta function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo setPlayerMoney(source, 800) setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170)--Si funciona pero No se porque al momento de morir se vuelve la skin de cj end end) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, -- oyuncu öldüğünde function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170) else end end) addEventHandler ( "onPlayerWasted", getRootElement(), SWSpawn ) addEventHandler("onPlayerLogin", root, spawnOnLogin)    
    • How can I make it so that at the moment of appearing the CJ skin does not appear, if someone helps me I will be grateful   addEventHandler("onResourceStart", resourceRoot,     function()         spawnpoint = getRandomSpawnPoint()         resetMapInfo()         for i,player in ipairs(getElementsByType("player")) do             spawn(player)             setPlayerSkin(source, 170)         end     end ) function spawn(player)     --if not isElement(player) then return end     if get("spawnreset") == "onSpawn" then         setPlayerSkin(source, 170)         spawnpoint = getRandomSpawnPoint()     end     exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false)     repeat until setElementModel(player,math.random(322))     setPlayerSkin(source, 170)     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, --Cuando el jugador ingresa al servidor.     function()     if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo     spawnPlayer (source, 170, 170, 170)     setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí     setPlayerSkin(source, 170)     else             spawn(source)     end      end) addEventHandler("onPlayerLogin", root, --cuando el jugador inicia sesión en su cuenta     function()     if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo      setPlayerMoney(source, 800)     setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí     setPlayerSkin(source, 170)--Si funciona pero No se porque al momento de morir se vuelve la skin de cj     end      end) addEventHandler("onPlayerQuit",root,     function ()         if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then             spawnpoint = getRandomSpawnPoint()         end     end ) addEventHandler("onPlayerWasted", root, -- oyuncu öldüğünde     function()     if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo      setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí     setPlayerSkin(source, 170)     else     end     end)    addEventHandler ( "onPlayerWasted", getRootElement(), SWSpawn ) addEventHandler("onPlayerLogin", root, spawnOnLogin)
    • Okay thanks, how do I properly install those resources?
    • I think some resource had it, but I'm not sure. Generally it is possible, but you would need to have ped paths from GTA SA
    • Is there a way to have naps walking around the city? Not only driving 
×
×
  • Create New...