Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 14/12/19 in all areas

  1. ¿Quienes somos? Somos una pequeña comunidad ambiciosa que busca innovar y mejorar la experiencia de rol conocida de momento en la plataforma de Multi Theft Auto. Nuestra misión es brindar una experiencia única a los usuarios en base a sus sugerencias y opiniones, ofrecer sistemas novedosos con distintas técnicas de programación compatibles con la plataforma y forjar una comunidad de usuarios estable y fuerte. Buscamos Mappers con experiencia. Scripters que conozcan bien el lenguaje Lua y sepan de diseño web (HTML, CSS, Javascript). Diseñadores que sepan controlar el Photoshop. Nuestras redes
    1 point
  2. Appeal accepted, you've done your time. Even though the actions of you and "CHRS" combined are far more severe than what has been posted in your previous appeal topic (https://forum.multitheftauto.com/topic/115929-xsimas-unban-req/), I believe that nearly everyone deserves another chance. Both you and CHRS will be unbanned, you can bring him this news. If you engage in malicious activity that targets MTA users or servers again in the future, you will be banned and the ban will not be indefinite, but definately permanent. Note: many serials were used by you guys to avoid bans. Serials that resulted from abuse won't be unbanned, only what looks like your main PC's. I will leave this topic open for a while in case there's any issues like these ain't your main PC. In that case, please post the correct serial. @xSimas
    1 point
  3. Please read https://forum.multitheftauto.com/topic/94790-guidelines-and-formatting-for-this-section-read-before-posting/ first
    1 point
  4. Solved. Just replaced 'WHERE' with 'SET'. Thanks @JeViCo anyway.
    1 point
  5. Pois, ele deveria ter mostrado o código..
    1 point
  6. By column types and column length i mean this Apologizing for the inaccuracy
    1 point
  7. On my opinion vehicle creation takes a little amount of time to manage it's data. Try to use setTimer setTimer(setVehicleComponentVisible, 100, 1, vehicle, component, visible)
    1 point
  8. @MesaDowN sim. StopSound funciona também.
    1 point
  9. You are not providing a callback to your `UPDATE` query - which means dbPoll is not being called on the query handler, resulting in the query not being freed. You should instead use dbExec, instead of dbQuery, for your `UPDATE` query - providing you don't need to do anything once the query has completed. Otherwise, see the wiki page for dbQuery on providing a callback function with dbPoll. Regarding your problem with auto increment. You cannot set a text/string type column to auto increment. Auto increment is limited to INT type columns. You should have an additional column (at the start) called `id`, with INT type, which is set to UNIQUE Key and Auto Increment.
    1 point
  10. Crie um script lado server com o evento onPlayerLogin e faça um trigger com triggetClientEvent para chamar um evento criado com addEvent no lado client; dentro dele use a função destroyElement para remover o som.
    1 point
  11. 1 point
  12. Apenas uma otimização para evitar condição negativa: (e também corrigi umas coisinhas erradas) addCommandHandler ("pf", function (thePlayer, cmd, nick) if (isObjectInACLGroup ("user."..getAccountName (getPlayerAccount (thePlayer)), aclGetGroup ("PF_CMD"))) then -- Se o jogador estiver na ACL "PF_CMD", então: if (not nick) then -- Aqui eu separei em 3 linhas apenas pra você não se perder na indentação. return outputChatBox ("ERRO! Informe um nick por gentileza!", thePlayer, 255, 0, 0) -- Se nenhum nick for informado, manda esse feedback e cancela a função. end local jogador = getPlayerFromPartialName (nick) if (jogador) then -- Se algum jogador com o nick informado for encontrado, então: if (isObjectInACLGroup ("user."..getAccountName (getPlayerAccount (jogador)), aclGetGroup("PF"))) then -- Se o jogador estiver na ACL "PF", então: aclGroupRemoveObject (aclGetGroup("PF"), "user."..getAccountName (getPlayerAccount (jogador))) -- Remove o jogador da ACL "PF". outputChatBox ("Você removeu o jogador '"..string.gsub(getPlayerName (jogador), "#%x%x%x%x%x%x", "").."' do grupo da PF!", thePlayer, 0, 255, 0) outputChatBox ("O jogador '"..string.gsub(getPlayerName (thePlayer), "#%x%x%x%x%x%x", "").."' removeu você do grupo da PF.", jogador, 255, 0, 0) else -- Senão: (se o jogador não estiver na ACL da "PF", então:) aclGroupAddObject (aclGetGroup("PF"), "user."..getAccountName (getPlayerAccount (jogador))) -- Adiciona o jogador na ACL "PF". outputChatBox ("Você adicionou o jogador '"..string.gsub(getPlayerName (jogador), "#%x%x%x%x%x%x", "").."' ao grupo da PF!", thePlayer, 0, 255, 0) outputChatBox ("O jogador '"..string.gsub(getPlayerName (thePlayer), "#%x%x%x%x%x%x", "").."' adicionou você ao grupo da PF.", jogador, 0, 255, 0) end else -- Senão: (se nenhum jogador com esse nick for encontrado, então:) outputChatBox ("ERRO! Nenhum jogador com esse nick foi encontrado!", thePlayer, 255, 0, 0) end else -- Senão: (Se o jogador não estiver na ACL "PF_CMD", então:) outputChatBox ("Você não tem permissão!", thePlayer, 255, 0, 0) end end) function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end Obs: É necessário que seu resource tenha permissão Admin.
    1 point
  13. 1 point
  14. Boa Tarde, Não manjo nada de programação, poderia fazer pra mim?
    0 points
  15. Eu tentei fazer com essas coisas que vocês me mandaram mais eu não consegui pois eu sou iniciante alguem pode mandar um exemplo para eu usar de Base ou de Exemplo??
    0 points
×
×
  • Create New...