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

Teleport all players on

troblo

Almeida
Joined
Nov 9, 2008
Messages
3
Reaction score
0
Location
Brasil
Hello colleagues, I have a doubt about teleports and talls, already passai much time looking over a script that would be possible to teleport from all players at the same time for a given area and not found anything similar here in the forum, I wonder if this script exists here in the forum or if it would be possible for the same programming.

Apology by weak English ...

Google translator:)
 
You can edit masskick.lua to do it:
Code:
function onSay(cid, words, param)
	if(param == "") then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
		return TRUE
	end

	local t = string.explode(param, ",")
	if(not t[2]) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Not enough params.")
		return TRUE
	end

	local multifloor = FALSE
	if(t[3]) then
		multifloor = getBooleanFromString(t[3])
	end

	local tmp = 0
	local spectators = getSpectators(getCreaturePosition(cid), t[1], t[2], multifloor)
	for i, tid in ipairs(spectators) do
		if(isPlayer(tid) == TRUE and tid ~= cid and getPlayerAccess(tid) < getPlayerAccess(cid)) then
			doRemoveCreature(tid)
			tmp = tmp + 1
		end
	end

	if(tmp > 0) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Kicked " .. tmp .. " players.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not kick any player.")
	end

	return TRUE
end

Instead of removing, teleporting somewhere.
 
Back
Top