Postado Julho 25, 2016 8 anos local TYPE_ACCESS = { [1] = { "Player" }, [2] = { "Player" }, [3] = { "Account", "Player" }, [4] = { "Account", "Player" }, [5] = { "Account", "Player", "IP" } } function onSay(cid, words, param, channel) unregisterCreatureEventType(cid, "channelrequest") unregisterCreatureEventType(cid, "textedit") doPlayerSendChannels(cid, TYPE_ACCESS[getPlayerAccess(cid)]) registerCreatureEvent(cid, "Ban_Type") return true end Galera, esse é meu script de ban, porem, não esta funciondo, algum script que funciona? e que de a opção de banir ip?
Postado Julho 25, 2016 8 anos @vinidc2 Vá em Data/Talkactions.xml e adicione: <talkaction log="yes" words="/banip" access="5" script="bannes.lua"/> Depois vá em Data/talkactions/scripts e crie um arquivo chamado bannes.lua e adicione: function onSay(cid, words, param) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return TRUE end local pid = getPlayerByNameWildcard(param) local tmp = getPlayerIp(pid) if(doAddIpBanishment(tmp) or pid == 0 or (isPlayerGhost(pid) == TRUE)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.") end if isPlayerGhost(pid) == FALSE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, getCreatureName(pid) .. " has been banned.") doAddIpBanishment(tmp, 30 * 24 * 60 * 60) doRemoveCreature(pid) end return TRUE end Pronto! Obs: Se lhe ajudei, de um REP+ :D Editado Julho 25, 2016 8 anos por Mathwsz (veja o histórico de edições)
Postado Julho 25, 2016 8 anos @vinidc2 ai mano você não precisa de script para banir alguém, simplesmente aperte (CTRL + Y) Meu servidor https://www.facebook.com/Heavennoobwar
Postado Julho 25, 2016 8 anos Autor Agora, helix758 disse: @vinidc2 ai mano você não precisa de script para banir alguém, simplesmente aperte (CTRL + Y) aperto ctrl + y e nao aparece nada.. o sistema que esta atualmente eu digito /ban, abre como se fosse o ctrl + o, ai me da as opçoes mas nao funciona.. 3 minutos atrás, Mathwsz disse: @vinidc2 Vá em Data/Talkactions.xml e adicione: <talkaction log="yes" words="/banip" access="4" event="script" value="bannes.lua"/> Depois vá em Data/talkactions/scripts e crie um arquivo chamado bannes.lua e adicione: function onSay(cid, words, param, channel) local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.") return true end doAddIpBanishment(getPlayerIp(pid)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " has been permanently banished.") return true end Pronto! Obs: Se lhe ajudei, de um REP+ :D ja dei rep+, vou testar, me fala uma coisa, vou testar aqui, e depois como faço pra desbanir o ip? pois vou testar com um amigo
Postado Julho 25, 2016 8 anos @vinidc2 Basta falar /removerban nome do player ou.. /unban nome do player Dúvidas, poste aí
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.