Postado Setembro 21, 2016 8 anos 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 Setembro 21, 2016 8 anos por Vodkart (veja o histórico de edições)
Postado Setembro 21, 2016 8 anos 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 Setembro 26, 2016 8 anos 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.