Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 15/01/21 in all areas

  1. You can start by posting here MTADiag logs.
    1 point
  2. Hi, and welcome on Forum! Your code looks correct and should work on client side. But.. probably the help command name is already in use, it's a hardcoded MTA command. Try to use something else.
    1 point
  3. You can't read meta.xml in client side and I think that this probably is your mistake. To read the meta.xml file you need to do that in the server side and if needed send the data to the client.
    1 point
  4. O objeto não. Mas você pode salvar as informações dele como ID, posição e rotação e depois recriar o objeto com essas informações.
    1 point
  5. تفضل , سؤالك بخصوص ايش ؟
    1 point
  6. Primeiro devemos corrigir muitos erros. Não se usa 'source' como parametro definido, isso é um erro absurdo que acontece direto na comundiade Brasileira, veja Quando e como deve usar source. Outra coisa é. O fato de você ter usado a nome do player invés de usar a conta dele, a função isObjectInACLGroup exige a conta do player, e não nome. E não tem porquê usar aquele return no outputChatBox. Aqui está o código corrigido e funcionando: function Anonimo(p, cmd, ...) local anonimo = table.concat({ ... }, " ") local nome = getPlayerName(p) conta = getAccountName( getPlayerAccount (p)) for _,v in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..conta, aclGetGroup("Staff")) then outputChatBox("#000000[ Anonimo ] #FFFFFF "..nome.." #FFFFFF: #FFFFFF"..anonimo,v, 255, 255, 255, true) else outputChatBox("#000000[ Anonimo ] #FFFFFF"..anonimo,v, 255, 255, 255, true) end end end addCommandHandler("anonimo", Anonimo)
    1 point
×
×
  • Create New...