Jump to content

Search the Community

Showing results for tags 'mecanico'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 3 results

  1. Grupo = "Mecanico" function Verificar_Emprego_Atual ( ) for i, player in ipairs(getElementsByType("player")) do local acc = getPlayerAccount(player) if acc and not isGuestAccount(acc) then local accName = getAccountName (acc) if isObjectInACLGroup ("user."..accName, aclGetGroup ( Grupo ) ) then if getElementData ( player, "Emprego" ) == false then setElementData ( player, "Emprego", "Mecanico" ) end else if getElementData ( player, "Emprego" ) == "Mecanico" then setElementData ( player, "Emprego", false ) end end end end end setTimer ( Verificar_Emprego_Atual, 5000, 0 ) Alguem ajuda estou querendo tira acl do script mais quando eu tento tira da erro
  2. Podem me ajudar com um script que Repara o Veiculo quando você está dentro dele? Não tenho muito conhecimento na area e estava precisando desse Script para o meu servidor Preciso que a pessoa que tenha essa tag determinada , de mecanico por exemplo , conseguisse reparar o veiculo dando /repararveiculo , por exemplo POR FAVOR , ME AJUDEM!
  3. Olá gostaria que alguém pudesse me ajuda com esse script aqui eu estou tentando fazer um /reparar perto do carro, mas eu peguei uma função da wiki getNearestVehicle so que dessa função está pegando todos os carros do mapa e eu so queria o carro que está perto do mecanico/jogador. Server-side function Repara_Veiculo_Mecanico(player,distance) local JogadorX,JogadorY,JogadorZ = getElementPosition(player) local JogadorInterior = getElementInterior(player) local JogadorDimensao = getElementDimension(player) for _,v in pairs(getElementsByType("vehicle")) do local vint,vdim = getElementInterior(v),getElementDimension(v) local HP = getElementHealth(v) if vint == JogadorInterior and vdim == JogadorDimensao then local VeiculoX,VeiculoY,VeiculoZ = getElementPosition(v) local dis = getDistanceBetweenPoints3D(JogadorX,JogadorY,JogadorZ,VeiculoX,VeiculoY,VeiculoZ) if not getPedOccupiedVehicle(player) then if HP < 100 then if dis < 2 then outputChatBox ( "Você reparou o carro com sucesso!!", player, 255, 255, 255, true ) fixVehicle(v) playSoundFrontEnd( player, 46 ) else exports.Scripts_Dxmessages:outputDx(player, "Sem carro perto!!", "warning") end else outputChatBox ( "Carro ja está reparado!!", player, 255, 255, 255, true ) end else outputChatBox ( "Voce está dentro de um veiculo!!", player, 255, 255, 255, true ) end end end end addCommandHandler("reparar", Repara_Veiculo_Mecanico)
×
×
  • Create New...