Ir para conteúdo

Featured Replies

Postado
  • Autor
  Em 02/01/2013 em 23:13, Kimoszin disse:

Sim sim, é só adicionar a verificação do primeiro script.

Estranho é não estar banindo '-'

Seria isso o que tu quis dizer? Não entendi muito bem.


function onSay(cid, words, param, channel)

local group = 3

if not(getPlayerGroupId(cid) >= group) then

return false

end

function onSay(cid, words, param, channel)

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

  • Respostas 22
  • Visualizações 911
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Tente esse: function onSay(cid, words, param, channel) local group = 3 if not(getPlayerGroupId(cid) >= group) then return false end local tid = cid if(param ~= '') then tid = getPlaye

  • function onSay(cid, words, param, channel) local group = 3 if not(getPlayerGroupId(cid) >= group) then return false end if (param == '') then return doPlayerSendTextMessage(cid,

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

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