Ir para conteúdo

Featured Replies

Postado

fala galera tenho um script /ban e o ip da pessoa ai bani o ip ta dando erro, como resolver ???

 

Mostrar conteúdo oculto

 

[19:38:17.374] [Error - TalkAction Interface] 
[19:38:17.374] data/talkactions/scripts/banip.lua:onSay
[19:38:17.374] Description: 
[19:38:17.374] (luaGetCreatureName) Creature not found

[19:38:17.374] [Error - TalkAction Interface] 
[19:38:17.374] data/talkactions/scripts/banip.lua:onSay
[19:38:17.374] Description: 
[19:38:17.374] data/talkactions/scripts/banip.lua:16: attempt to concatenate a boolean value
[19:38:17.374] stack traceback:
[19:38:17.374]     data/talkactions/scripts/banip.lua:16: in function <data/talkactions/scripts/banip.lua:1>
 

 

  • Respostas 8
  • Visualizações 690
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Sim.

  • You can also create a global table in globals and then check the ip of the player when they login to that of the table and if the ip is blocked not allow them to login.   There are a number

Postado
function onSay(cid, words, param, channel)
 local group = 3
  if not(getPlayerGroupId(cid) >= group) then
   return false
  end
 if (param == "") then
   return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce precisa informar o nome do jogador.")
 end
 
 local pid = getPlayerByNameWildcard(param)
 if (not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
  doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O player " .. param .. " nao está online.")
 end
 doAddIpBanishment(getPlayerIp(pid))
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " foi banido.")
return true
end

 

Editado por Yota (veja o histórico de edições)

Postado
  • Autor

mais ele continua pelo ip ??? exemplo eh assim /banip aqui coloco o ip pra banir e não nome do cara

  Em 20/09/2016 em 23:31, Yota disse:

function onSay(cid, words, param, channel)
 local group = 3
  if not(getPlayerGroupId(cid) >= group) then
   return false
  end
 if (param == "") then
   return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce precisa informar o nome do jogador.")
 end
 
 local pid = getPlayerByNameWildcard(param)
 if (not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
  doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O player " .. param .. " nao está online.")
 end
 doAddIpBanishment(getPlayerIp(pid))
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " foi banido.")
return true
end

 

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo