• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Ban IP too

Pedro0

New Member
Joined
Feb 28, 2009
Messages
3
Reaction score
0
Hi.. First all sorry for my English is suck I only speak spanish

my ot server no have rule of violation soo i have one script for ban.
my scrpit only ban player "doplayeraddbanish" so need scrits wht ban ipp too ok somebody help me make plz.. my scrpts is the next

PHP:
local Comentario = "Baniado POR SER BASURA Y PARASITO."
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 el nombre del jugador.")
            elseif tonumber(data[2]) == nil then
                doPlayerSendCancel(cid, "Coloque la cantidad 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 los datos necesarios.")
        end
    end
    return TRUE
end

all really ty
 
Back
Top