Postado Janeiro 6, 2015 10 anos Bom não sei se realmente é local correndo para postar isso...mas,enfim Eu tava querendo algo que impedisse de nukkurem meu server atraves de account manngers, pois eles logaram diversos acc manngers e assim server fica inviavel.
Postado Janeiro 6, 2015 10 anos Solução vá em data/creaturescripts/scripts e crie um arquivo chamado Antimagebomb.lua e cole isso dentro: local config = { max = 2, text = "Multi-Client or Magebomb is not allowed.", group_id = 1 -- it will only kick player whit that id (1=Players, 2=tutor, 3=seniortutors, 4=Gm's, 5=Cm's and 6=God's } local accepted_ip_list = "" -- here put the Ip you whant to be allowed to use Mc/Magebomb.. local function antiMC(p) if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then doRemoveCreature(p.pid) end return TRUE end function onLogin(cid) if getPlayerGroupId(cid) <= config.group_id then if isInArray(accepted_ip_list,getPlayerIp(cid)) == FALSE then addEvent(antiMC, 1000, {pid = cid, max = config.max+1}) doPlayerPopupFYI(cid, config.text) end end return TRUE end depois vá em creaturescripts.xml e adicione éssa linha: <event type="login" name="Antimagebomb" event="script" value="Antimagebomb.lua"/> depois vá em data/creaturescripts/scripts e abre o arquivo login.lua e adicione éssa linha: registerCreatureEvent(cid, "Antimagebomb") Para configurar mecha apenas néssa parte: max = 2, -- o tanto de contas que vão poder logar com o mesmo IP. No caso aki vai poder logar apenas 2 Account manager com o mesmo IP text = "Multi-Client or Magebomb is not allowed.", __ A mensagem que vai aparecer quando alguém entrar no OTserver espero ter ajudado, Abraços! Editado Janeiro 6, 2015 10 anos por Dieguiin XP (veja o histórico de edições) Att,Dieguiin XP »»http://baiakfull.com/««
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.