Postado Agosto 1, 2016 8 anos Preciso saber como coloco pra nao poder logar mais de 1 char por ip. Para os cara nao fazer 10 char pra ajudar upar 1. Urgente!
Postado Agosto 1, 2016 8 anos @Spectry 2 Tente assim: Vá em Data/Creaturescripts/scripts e crie um arquivo chamado antimc.lua e coloque isso dentro: Spoiler local config = { max = 4, 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 Agora vá em Data/Creaturescripts.xml e adicione: <event type="login" name="antimc" event="script" value="antimc.lua"/> E para finalizar, vá em Data/Creaturescripts/scripts e abra o arquivo login.lua e adicione isso: registerCreatureEvent(cid, "antimc") Obs: Se lhe ajudei, de um REP+ :D Esse script não é meu..
Postado Agosto 1, 2016 8 anos 1 hora atrás, Spectry 2 disse: Dei só reload, sera que funciona? qual e o seu servidor?
Postado Agosto 1, 2016 8 anos Autor Spectry.servegame.com 8 horas atrás, Mathwsz disse: @Spectry 2 Tente assim: Vá em Data/Creaturescripts/scripts e crie um arquivo chamado antimc.lua e coloque isso dentro: Mostrar conteúdo oculto local config = { max = 4, 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 Agora vá em Data/Creaturescripts.xml e adicione: <event type="login" name="antimc" event="script" value="antimc.lua"/> E para finalizar, vá em Data/Creaturescripts/scripts e abra o arquivo login.lua e adicione isso: registerCreatureEvent(cid, "antimc") Obs: Se lhe ajudei, de um REP+ :D Esse script não é meu.. Tem como colocar pra 2 chares no max para cada ip?
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.