PtokaX forum

PtokaX => FAQ section => Topic started by: Taime_Down on 17 April, 2010, 17:45:39

Title: OPs Kicking OPs
Post by: Taime_Down on 17 April, 2010, 17:45:39
Is there a script to  disallow Ops from kicking Ops ?  i know  you can disallow Ops from kicking completly   , i want Ops to kick bad users   but not each other....or i'll need to remove em   =)
Title: Re: OPs Kicking OPs
Post by: CrazyGuy on 17 April, 2010, 17:59:11
Try this



ChatArrival = function(User,Data)
local _,_,sCmd,sVictim,sReason = Data:find("%b<>%s%p(%S+)%s(.*)%s(.*)|")
if sCmd == nil then
_,_,sCmd,sVictim = Data:find("%b<>%s%p(%S+)%s(.*)|")
end
if sCmd and sCmd == "drop" then
local tVic = Core.GetUser(sVictim)
if tVic.iProfile ~= -1 then
if User.iProfile < tVic.iProfile then
--okay
else
Core.SendToUser(User,"You are not allowed to drop a person with a higher or equally high profile as you have|")
return true
end
end
end
return false
end