The usgn in table :
admins = {xxxxx,123,12345,89,58}
They can not be banned
If you try, an error message appears
help?
Scripts
No Ban Admins ..
No Ban Admins ..
1

Re: No Ban Admins ..function string.split(split,pat)
	local t = {}
	for item in string.gmatch(split, pat) do
		table.insert(t,item)
	end
	return t
end
function checkban(cmd)
	local cmdt=string.split(cmd,"(%S*)")
	if cmdt[1]:sub(1,3)=="ban" then
		local param
		if cmdt[1]=="banip" then
			param="ip"
		elseif cmdt[1]=="banname" then
			param="name"
		elseif cmdt[1]=="banusgn" then
			param="usgn"
		end
		for _,a in pairs(admins) do
			if player(a,param)==cmdt[2] then
				return true
			end
		end
	end
	return false
end
addhook("parse","cantbanadmins1")
addhook("rcon","cantbanadmins2")
function cantbanadmins1(cmd)
	if checkban(cmd) then
		return 2
	end
end
function cantbanadmins2(cmd)
	if checkban(cmd) then
		return 1
	end
end
1
