Jump to content

Search the Community

Showing results for tags 'localdoplayer'.

  • 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 1 result

  1. Bom dia, preciso de uma ajuda bem simples. Uso: local marker1 = createMarker(-681, 949, 11, "cylinder", 1.5, 255,0,0, 25) function roubarC(source) local roubou = getElementData(source, "roubado") local roubarC = getPlayerName(source, true) local rouboLocal = getLocalPlayer() if isElementWithinMarker(source, marker1) then if (roubou == false) then outputChatBox("#00ff00| SS | Você roubou o cofre e recebeu 10.000,00 coins.", source, 255,255,255, true) outputChatBox("#00ff00| SS |"..roubarC.." roubou um confre em "..rouboLocal..".", root, 255,255,255, true) givePlayerMoney(source, 10000) setElementData(source, "roubado", true) setTimer (function () removeElementData(source, "roubado") end, 5000, 1) else outputChatBox("#ff0000| ERRO | Você roubou esse cofre agora pouco.", source, 255,255,255, true) end end end addCommandHandler("roubarcofre", roubarC) Porém sou iniciante, tanto é que uso o setElementData para limitar um tempo que o jogador pode fazer novamente o comando (improvisação). Então, o que quero é somente enviar no global o local do jogador que está roubando. Consegui user o getPlayerName para divulgar o nome, mas queria divulgar o local e o getLocalPlayer não me proporciona isso. Usei o /debugscript 3 para verificar o que acontece, e o resultado não me ajuda =(. Meu erro: clique aqui. Agradeço desde já =)
×
×
  • Create New...