Jump to content

Search the Community

Showing results for tags 'ispedinvehicle'.

  • 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


About Me


Member Title


Gang


Location


Occupation


Interests

Found 2 results

  1. Olá amigos da comunidade, estou aprendendo um pouco de programação e estou com uma duvida no meu teleporte. Estou tentando usar o "isPedInVehicle" como faço isso? Meu código está assim: local entrar = createMarker(2033.91504, -1402.85449, 16, "cylinder", 2, 255, 0, 0, 50) function entrar1 (thePlayer) local acc = getPlayerAccount(thePlayer) if acc and not isGuestAccount(acc) then local accName = getAccountName (acc) if isObjectInACLGroup ("user."..accName, aclGetGroup ( Grupo ) ) then setElementInterior(thePlayer, 10, 246.39647, 110.09633, 1003.22571) setElementDimension(thePlayer, 2) else --outputChatBox( "Você não tem permissão!", thePlayer, 200, 0, 0, false ) dxMsg(thePlayer, "Você não tem permissão para entrar aqui!", "error") end end end addEventHandler ("onMarkerHit", entrar, entrar1) Estou tentando bloquear a teleporte com o veiculo usando um if com o "isPedInVehicle" function entrar1 (thePlayer) if not isPedInVehicle ( thePlayer ) then local acc = getPlayerAccount(thePlayer) if acc and not isGuestAccount(acc) then local accName = getAccountName (acc) if isObjectInACLGroup ("user."..accName, aclGetGroup ( Grupo ) ) then setElementInterior(thePlayer, 10, 246.39647, 110.09633, 1003.22571) setElementDimension(thePlayer, 2) else --outputChatBox( "Você não tem permissão!", thePlayer, 200, 0, 0, false ) dxMsg(thePlayer, "Você não tem permissão para entrar aqui!", "error") end end end end addEventHandler ("onMarkerHit", entrar, entrar1) Assim penso eu que iria funcionar, mais nãaoo. O que estou fazendo de errado?
  2. THE ERRORS ARE: WARNING!:bad argument "isPedInVehicle" [Expected ped at argument 1, got string "repair"] WARNING!:bad argument "outputChatBox" [Expected bool at argument 5, got number "0"] and my script is this: (the chatbox are in spanish) function mecanico ( thePlayer ) car= getPedOccupiedVehicle ( thePlayer ) if isPedInVehicle( thePlayer ) then outputChatBox("reparaste el auto correctamente", thePlayer, 255, 255, 0) fixVehicle( car ) else outputChatBox("No estas en el vehiculo para reparar el coche", thePlayer, 255, 0, 0) end end addEventHandler("onPlayerVehicleEnter", getRootElement(), mecanico) addCommandHandler("reparar", mecanico) any solution please??
×
×
  • Create New...