Jump to content

Armas no marker por comando /batercartao AJUDA


Recommended Posts

Posted (edited)
function PMtrabalhar ( ThePlayer )
local accName = getAccountName ( getPlayerAccount ( ThePlayer ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "PMP") ) then
if not isElementWithinMarker(ThePlayer, MarkerPM) then return end
if getElementData(ThePlayer, "PMemprego", true) then
outputChatBox("#ff0000Voçe ja esta em serviço e nao pode bater cartao novamente",ThePlayer,255,255,255,true)
else
outputChatBox(" "..getPlayerName(ThePlayer).." #FFFF00BATEU O CARTAO E ESTA EM SERVIÇO PARA PATRULHAMENTO E RECEBER CHAMADAS 190", Player, 255, 255, 255, true)
setElementData(ThePlayer, "PMemprego", true)
end
end
end
addCommandHandler("batercartao", PMtrabalhar)


   

 

ONDE COLOCO ARMA SKIN COLETE AQUI pra quando digitar comando pegar tudo

Edited by jhxp
  • MTA Team
Posted

Please use code tag <> and mark your code as Lua next time.

Also make sure to post in the correct section.

One of the [VCP] leaders // honorary member of the =PCP= gang.

 

Do not PM me your MTA:SA Client / Server support questions, Lua scripting questions, unban requests or server toplist concerns - please ask them here: MTA:SA Support subforum, here: Scripting subforum, here: Ban appeals or here: Servers instead.

For other inquiries - please expect delays in replies when messaging me.

  • Moderators
Posted

Use a função giveWeapon a partir da linha 8.

Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanksspacer.png

Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile
Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment
Discord Oficial do MTA: https://mtasa.com/discord
Blacklist e Whitelist de Scripters: Planilha

Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.

  • Moderators
Posted

Ah, perdão. Não tinha visto que ele queria outras coisas além de armas. Por isso que se deve colocar os detalhes do post antes do código.

Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanksspacer.png

Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile
Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment
Discord Oficial do MTA: https://mtasa.com/discord
Blacklist e Whitelist de Scripters: Planilha

Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.

Posted (edited)

Nessa linha no seu código:

 

outputChatBox(" "..getPlayerName(ThePlayer).." #FFFF00BATEU O CARTAO E ESTA EM SERVIÇO PARA PATRULHAMENTO E RECEBER CHAMADAS 190", Player, 255, 255, 255, true)

Você esta declarando player, se você quer que mostre para todos deveria ser assim:

 

outputChatBox("O(a) Policial "..getPlayerName(ThePlayer).." #FFFF00BATEU O CARTAO E ESTA EM SERVIÇO PARA PATRULHAMENTO E RECEBER CHAMADAS 190", root, 255, 255, 255, true)

 

Edited by OverKILL

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...