Script Banimento Erro Virando Account Namager

GodalonexD
em Scripts

GodalonexD

é Melhor
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 23/03/08Posts: 205

Ola Gente meu script de ban esta com um pequeno erro, ele funciona e da kick no char porem ao invez dele banir ele da kick no char e quando ele volta ele está ACCOUNT NAMAGER!

meu servidor é 960 e estou precisando desse script! faz tempo que estou procurando um script que funcione e esse funcionou pelo menos transformou ele em ACCOUNT NAMAGER, os outros scripts que peguei da dava kick no char e nada de banir! char saia andando normalmente!

Segue abaixo o script

REP+

 

-- function onSay(cid, words, param, channel)

-- local t = param:explode(",")

-- local name, days, coments = t[1], tonumber(t[2]), t[3]

-- local player = getPlayerByName(name)

-- if name then

-- if days then

-- local acc = getAccountIdByName(name)

-- if acc ~= 0 then

-- local tempo = days * 24 * 3600

-- doAddAccountBanishment(acc, player, os.time() + tempo, 12, 2, t[3], 0)

-- if isPlayer(player) then

-- doRemoveCreature(player)

-- end

-- else

-- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Este player não existe.")

-- end

-- else

-- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode adicionar essa quantidade de dia(s) de dias de banimento.")

-- end

-- else

-- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O nome do player esta incorreto.")

-- end

-- return true

-- end

 

function onSay(cid, words, param, channel)

 

 

local t = string.explode(param, ",")

--if param == '' or not days or not name or not motivo then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite /ban nome,dias,motivo.") return true end

local name, days = t[1], tonumber(t[2])

local motivo = t[3]

local acc = getAccountIdByName(name)

local target = getPlayerByName(name)

if acc ~= 0 then

local tempo = days * 24 * 3600

--doAddAccountBanishment(acc, target, os.time() + tempo, 5, 2, 'Você foi banido por "..motivo..",por "..tempo.." !.', 0)

doAddPlayerBanishment(getCreatureName(target))

--doAddAccountBanishment(acc)

doBroadcastMessage("O jogador ".. getCreatureName(target).. " foi banido por ".. getCreatureName(cid).. ". Motivo:\n".. motivo .. ".", 25)

addEvent(doRemoveCreature, 3*1000, target, true)

return true

end

end

Ajudei? da REP+

Custa nada!

KennyConrad

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 21/08/11Posts: 470Char no Tibia: ...

é porque esse sistema está dando name locked no player dai o player vira account manager e o player tem a opção de mudar o nome dele e logar novamente

KennyConrad

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 21/08/11Posts: 470Char no Tibia: ...

.

Ola Gente meu script de ban esta com um pequeno erro, ele funciona e da kick no char porem ao invez dele banir ele da kick no char e quando ele volta ele está ACCOUNT NAMAGER!

meu servidor é 960 e estou precisando desse script! faz tempo que estou procurando um script que funcione e esse funcionou pelo menos transformou ele em ACCOUNT NAMAGER, os outros scripts que peguei da dava kick no char e nada de banir! char saia andando normalmente!

Segue abaixo o script

REP+

 

-- function onSay(cid, words, param, channel)

-- local t = param:explode(",")

-- local name, days, coments = t[1], tonumber(t[2]), t[3]

-- local player = getPlayerByName(name)

-- if name then

-- if days then

-- local acc = getAccountIdByName(name)

-- if acc ~= 0 then

-- local tempo = days * 24 * 3600

-- doAddAccountBanishment(acc, player, os.time() + tempo, 12, 2, t[3], 0)

-- if isPlayer(player) then

-- doRemoveCreature(player)

-- end

-- else

-- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Este player não existe.")

-- end

-- else

-- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode adicionar essa quantidade de dia(s) de dias de banimento.")

-- end

-- else

-- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O nome do player esta incorreto.")

-- end

-- return true

-- end

 

function onSay(cid, words, param, channel)

 

 

local t = string.explode(param, ",")

--if param == '' or not days or not name or not motivo then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite /ban nome,dias,motivo.") return true end

local name, days = t[1], tonumber(t[2])

local motivo = t[3]

local acc = getAccountIdByName(name)

local target = getPlayerByName(name)

if acc ~= 0 then

local tempo = days * 24 * 3600

--doAddAccountBanishment(acc, target, os.time() + tempo, 5, 2, 'Você foi banido por "..motivo..",por "..tempo.." !.', 0)

doAddPlayerBanishment(getCreatureName(target))

--doAddAccountBanishment(acc)

doBroadcastMessage("O jogador ".. getCreatureName(target).. " foi banido por ".. getCreatureName(cid).. ". Motivo:\n".. motivo .. ".", 25)

addEvent(doRemoveCreature, 3*1000, target, true)

return true

end

end

 

vixi testei aki no meu servidor e nen vira account manager no meu servidor simplesmente o player é kickado =(

GodalonexD

é Melhor
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 23/03/08Posts: 205

entao alguem ajuda... '-'

Ajudei? da REP+

Custa nada!

KUNGLOW

avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 19/06/11Posts: 195Char no Tibia: Desconhecido

Aqui nem kikar kika o.O

"Sua vida não é uma coincidência, é um reflexo do amor de Deus por ti..."