Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 27/09/19 in all areas

  1. Sorry, the message above does not display the picture.
    2 points
  2. engineImportTXD engineLoadTXD engineLoadDFF engineReplaceModel engineLoadCOL engineReplaceCOL Just click and use the code examples from these functions on wiki, no need to screen share anything, it's pretty simple..
    1 point
  3. https://wiki.multitheftauto.com/wiki/Authorized_Serial_Account_Protection Be sure that this is empty: <auth_serial_groups></auth_serial_groups> In mtaserver.conf
    1 point
  4. Salva a skin com um setAccountData e getElementModel, depois que ele logar no server, pega de volta com getAccountData e setElementModel. Vai precisar dos eventos onPlayerQuit, onPlayerLogout e onPlayerLogin.
    1 point
  5. Está funcionando agora?
    1 point
  6. Nao. zombiehunterpickup55555 = createPickup (2496.112, -1708.369, 1014.742, 3, 1275, 1000 ) setElementDimension ( zombiehunterpickup55555, 1 ) setElementInterior ( zombiehunterpickup55555, 3 ) function zombiehunterskinpickup55555 ( thePlayer ) setPedSkin ( thePlayer, 96 ) setPlayerTeam ( thePlayer, teamzombie ) setElementData ( thePlayer, "zombie", true ) end addEventHandler ( "onPickupUse", zombiehunterpickup55555, zombiehunterskinpickup55555 ) addEventHandler ("onPickupUse", getRootElement(), function (playerWhoUses) if (source == zombiehunterpickup55555) then setPlayerNametagText (playerWhoUses, "" .. getPlayerName (playerWhoUses)) setElementData (playerWhoUses, "job", "farm") end end) Voce quer setar o elemento no interior e na dimensario, nao o jogador.
    1 point
  7. Main page Animation Homepage
    1 point
  8. -- SERVER-SIDE local players = {} addEventHandler("onPlayerJoin", root, function() for i = 1, #players+1, 1 do if getElementType(players[i]) != "player" then players[i] = source outputChatBox(i) break end end end )
    1 point
  9. ما احب اتدخل في النوايا ولكن واضح ان مافيه اي مقابل مادي يحفز المبرمج يشتغل معك وغير كذا العرض حقك يقوم على استغلال المبرمجين العرب بمسمى "لازم نجتمع ونطور" بحيث تتجنب التكاليف المادية عموماً اذا فيه مبالغ مادية مقدمة ومرضية لجميع المبرمجين الي بيدخلون معك, بالتوفيق وعسى تكون من أفضل السيرفرات!
    1 point
  10. Yeah I'd probably push verts down to balance the relief of the model for the house to properly sit on, but that'd be done on a case-case scenario all depending on the shape of the house's bottom. You can also push down faces or edges. At last, you'll have to adjust the collision for the modified terrain to collide properly. I've made a thread on collisions at: If you go with importing the Rockstar default collision of the terrain (recommended) you'll have to match the vertices of the collision mesh to the game mesh. I would use 'Snap to Vertex' to move the collision verts into the game mesh verts positions. As an alternative you could duplicate the game mesh and name it 'col_terrainName', then do the collision materials for the sand, dirt, grass and what not. Use 'Select by Material' to quickly select all faces that represent sand or grass and then apply the respective collision material. For replacing files you could use an MTA script, or do as you said, replace in gta3.img. If you do gta3.img, you'll have to replace the collision inside the collision archive (which likely contains 20+ other collisions). I use Steve-M's COL Editor for that. If you go with MTA script, all you'll need is a single collision file and a single model file (optionally TXD file if using custom textures).
    1 point
  11. addCommandHandler getElementsByType - loop getDistanceBetweenPoints2D - verificar distância getElementHealth - verificar numa condição se a hp é menor que 20 getPedWeapon - faça um loop em todas armas; armazene em uma table giveWeapon
    1 point
  12. Hey, i reworked mta community webpage. I apologize in advance for my bad english Russia power!
    1 point
  13. addCommandHandler( "an", function ( source, cmd, ... ) local message2 = #{...} > 0 and table.concat({...}," ") or nil if message2 then for _, p in ipairs (getElementsByType("player")) do if hasObjectPermissionTo(p, "command.mute", true) then outputChatBox("#ffffff[ #696969 Anônimo #ffffff] "..getPlayerName(source).."#696969 - "..message2, p, 255, 255, 255, true) else outputChatBox("#ffffff[ #696969 Anônimo #ffffff] #696969 - "..message2, p, 255, 255, 255, true) end end else outputChatBox( "[/"..cmd.."]: Digite uma mensagem!", source, 230, 20, 20 ) end end )
    1 point
×
×
  • Create New...