Ir para conteúdo

Featured Replies

Postado
function onSay(cid, words, param, channel)
 local group = 3
  if not getPlayerGroupId(cid) >= group then -- totalmente desnecessario so colocar na tag mas ok
   return true
 elseif param == '' then
   doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce precisa informar o nome do jogador.") return true
 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.") return true
 end
 doAddIpBanishment(getPlayerIp(pid))
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, param .. " foi banido.")
return true
end

 

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

  • Respostas 8
  • Visualizações 698
  • 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
  • Autor

o dele tava errado ??

 

  Em 21/09/2016 em 14:26, Vodkart disse:
function onSay(cid, words, param, channel)
 local group = 3
  if not getPlayerGroupId(cid) >= group then -- totalmente desnecessario so colocar na tag mas ok
   return true
 elseif param == '' then
   doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce precisa informar o nome do jogador.") return true
 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.") return true
 end
 doAddIpBanishment(getPlayerIp(pid))
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, param .. " foi banido.")
return true
end

 

 

Postado

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 of simplified ways you can handle this without worrying if a tfs function works or not, of course using a global table is only persistent for the duration of the server being online. 

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