floating around here somewhere is some module I wrote for someone a while back that is a seperate command that is like ban... but wont allow you to do perma. Let me see if I can find it.
found it!
function ulx.cc_ban2( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS, true )
return
end
local target, err = ULib.getUser( argv[ 1 ], _, ply )
if not target then
ULib.tsay( ply, err, true )
return
end
local bantime = tonumber( argv[ 2 ] ) or 0
if bantime == 0 then
ULib.tsay( ply, "This ban is not allowed to ban perminently", true )
return
end
local dummy, dummy, reason = args:find( "^\"*" .. ULib.makePatternSafe( argv[ 1 ] ) .. "\"*%s+" .. ULib.makePatternSafe( argv[ 2 ] ) .. "%s+(.*)$" )
reason = reason or "" -- Make sure it has a value
local time = "for " .. bantime .. " minute(s)"
if reason ~= "" then reason = "(" .. reason .. ")" end
ulx.logUserAct( ply, target, "#A banned #T " .. time .. " " .. reason )
ULib.kickban( target, bantime, reason, ply )
end
ulx.concommand( "ban2", ulx.cc_ban2, "<user> [<time>] [<reason>] - Bans a user for x minutes, Must be less than 4320 minutes(3 Days).", ULib.ACCESS_ADMIN, "!ban2", _, ulx.ID_PLAYER_HELP )
This is JUST like ulx ban.. excapet that it will not allow the use of 0 for the time.
ulx ban2 <name> <time> <Reason>
!ban2 <name> <time> <reason>