Postado Janeiro 3, 2013 12 anos 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 (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
Postado Janeiro 3, 2013 12 anos 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
Postado Janeiro 3, 2013 12 anos Autor Funcionou, vlw (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
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.