Ir para conteúdo

Posts Recomendados

  Em 31/01/2010 em 14:53, Geedes disse:

Por favor quero um scripter de ban sem ser do ip urgentissmo

 

Tem dois geitos de banir /b PLAYER ou /ban PLAYER

não sei qual bane ip... tenta ai

Link para o comentário
https://xtibia.com/forum/topic/127632-scrpter-ban-sem-ser-ip/#findComment-842936
Compartilhar em outros sites

  • 2 weeks later...

Se o seu script estiver funcionando eh so botar /ban Nome do player,dias

se nao tiver faça o seguinte

 

va na pastas talkactons/scripts e crie um arquivo tempoban.lua e bote o seguinte dentro:

  Citar
local Comentario = "Banido temporariamente."

function onSay(cid, words, param)

if getPlayerAccess(cid) >= 4 then

if #param > 0 then

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

if not getPlayerByName(data[1]) then

doPlayerSendCancel(cid, "Coloque o nome do jogador.")

elseif tonumber(data[2]) == nil then

doPlayerSendCancel(cid, "Coloque a quantidade de dias.")

else

local name, dias = getPlayerByName(data[1]), tonumber(data[2])

doAddBanishment(getPlayerAccountId(name), dias * 24 * 60 * 60, 19, 2, Comentario, getPlayerGUID(cid))

doRemoveCreature(name)

end

else

doPlayerSendCancel(cid, "Coloque os dados necessarios.")

end

end

return TRUE

end

 

Depois talkactions.xml voce bota:

  Citar
<talkaction log="yes" access="3" words="/ban" script="tempoban.lua"/>
Link para o comentário
https://xtibia.com/forum/topic/127632-scrpter-ban-sem-ser-ip/#findComment-844998
Compartilhar em outros sites

×
×
  • Criar Novo...