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

Online

xLosT

Member
Joined
Jan 11, 2010
Messages
1,021
Reaction score
13
Location
Brasil, Rio Grande do Sul
my server is war, has tp 5 for 5 cities, it is possible to do so

18:06 Have 1 Player On Carlin, 1 player On Thais, 0 Player On Edron, 0 Player on Fibula, 0 Player On Venore.
18:06 Total 2 player(s) online:
18:06 Shoowpower [130], Knight Hell [135].
 
I'd have to know more about your server to really help, but if it is a war server with pvp in different towns..


I would just have it so when you go in the teleporter to a different town, for it to set your hometown ID

Then, just set it in the online script to get peoples hometown IDs and separate them by town.
 
I'd have to know more about your server to really help, but if it is a war server with pvp in different towns..


I would just have it so when you go in the teleporter to a different town, for it to set your hometown ID

Then, just set it in the online script to get peoples hometown IDs and separate them by town.

This is idea is better than mine, lol.
 
LUA:
function onSay(cid, words, param, channel)
	local strings, i, position, added, showGamemasters = {""}, 1, 1, false, getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand'))
	for _, pid in ipairs(getPlayersOnline()) do
		if(added) then
			if(i > (position * 7)) then
				strings[position] = strings[position] .. ","
				position = position + 1
				strings[position] = ""
			else
				strings[position] = i == 1 and "" or strings[position] .. ", "
			end
		end

		added = false
		if((showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then
			strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]"
			i = i + 1
			added = true
		end
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player" .. (i > 1 and "s" or "") .. " online:")

-- ver. 2 2011-11-30 - 17:22 
-- author tfs, otland.net/members/andypsylon
	local ile = "In "
	for i, town in ipairs(getTownList()) do
		local p = 0
		if i > 1 then ile = ile .. ", in " end
		for _, pid in ipairs(getPlayersOnline()) do
			if getPlayerTown(pid) == town.id and ((showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then
				p = p + 1
			end
		end
		ile = ile .. town.name .. ": ".. p ..""
	end
	ile = ile..".\n"
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, ile)
-- end

	for i, str in ipairs(strings) do
		if(str:sub(str:len()) ~= ",") then
			str = str .. "."
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str)
	end

	return true
end
 
Last edited:
such that all players are speaking Thais
because they need to go tp edron, speaking in edron this because people say that the Thais

sry bad englesh

@edit
VERY THX MEN, 100%
i add citizen teleport, change town if pass teleport.
 
Last edited:
Back
Top