Author Topic: OPs Kicking OPs  (Read 2067 times)

0 Members and 1 Guest are viewing this topic.

Offline Taime_Down

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
OPs Kicking OPs
« 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   =)

PtokaX forum

OPs Kicking OPs
« on: 17 April, 2010, 17:45:39 »

Offline CrazyGuy

  • Viking
  • ****
  • Posts: 506
  • Karma: +83/-20
    • ?????=-_The NightHawk_-=?????
Re: OPs Kicking OPs
« Reply #1 on: 17 April, 2010, 17:59:11 »
Try this

Code: [Select]

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

PtokaX forum

Re: OPs Kicking OPs
« Reply #1 on: 17 April, 2010, 17:59:11 »