• 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!

TalkAction Kick anyone not as high staff as you

gigastar

Member
Joined
Jan 25, 2009
Messages
252
Reaction score
15
I notice in alot of distros gods cannot even kick gms... If you want to fix this, here is a nice script for it.



Lua:
local god_only = false


function onSay(cid, words, param, channel)
if (param == "") then
	doPlayerSendCancel(cid, "command param required")
return false
end

t = string.explode(param, "")
t[1] = player

if (god_only == true) then
if getPlayerGroupId(cid) < 3 then
	doPlayerSendCancel(cid, "You must be a god to use this command!")
return false
end
end


if (player == true) then
if (isPlayer(player)) then
	if getPlayerGroupId(player) < getPlayerGroupId(cid) then
		if getPlayerAccess(player) < getPlayerAccess(cid) then
			doRemoveCreature(player, true)
		else
			doPlayerSendCancel(cid, "You can only kick lower staff members.")
			return false
		end
	else
		doPlayerSendCancel(cid, "You can only kick lower staff members.")
		return false
	end
	else
		doPlayerSendCancel(cid, "This player is not online.")
	end
else
	doPlayerSendCancel(cid, "You must type the name of a player!")
end
return true
end

Code:
<talkaction log="yes" words="/fkick" access="3" event="script" value="force kick.lua"/>
 
Back
Top