• 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 list :O

  • Thread starter Deleted member 49793
  • Start date
D

Deleted member 49793

Guest
Hey basicly tfs comes with like !online where it lists them like

Code:
14:12 96 player(s) online:
14:12 Maskin [80], Saxo [8], Vero [22], Dudeim [55], Wicaeko [106], Icices [67], Alx [52],
14:12 Dreepyy [215], Kastrullen [266], Lord Onderbroek [108], Lokie [85], Xreez [95], Pohpoh [8], Haxstor [92],
14:12 Smarrig rotta [206], Briixco [354], Brex [85], Undead Ranger [8], Wikkid [64], Bad Santaa [53], Barbarian man [70],
14:12 Kijek [149], Fluffy [92], Saggz [65], Kesie [40], Slagathor Den Starke [171], Brilz [93], Damnei [36],
14:12 Inanass [10], Khees Trollfhace [8], Scout [22], Sager [40], Woop [95], Whip [8], Sky Blue [151],
14:12 Range [30], Silania [61], Razorblade [180], Cocoa [52], Nexy [8], Qweqwe [57], Massacre [72],
14:12 Hancock [68], Zercker [51], The Barbarian Coyote [40], Speedy [65], Neptune [8], Anonymous [61], Wendy [119],
14:12 Chipers [105], Cxod [412], Miner [57], Fexer [56], Sartharion [60], Silverz [31], Grim Reaper [8],
14:12 Bleu [124], Kahlee [120], Seymour Skinner [170], Brzoozek [103], Kutas [33], Luun [149], Chuck [51],
14:12 Snoopybboy [57], Frans [10], Veritas [270], Kutte [51], Changer Ranger [87], Zeliaria [86], Boetskes [104],
14:12 Orange Rook [8], Vizzarrgast [8], Paycito [74], Epic Barb [32], Vizzargast [282], Squadala [78], Sagge [100],
14:12 Santi [204], Drak Saus [47], Briisco [102], Wroubliq [65], Nillas [99], Moist Giraffe [124], Sir Splash [108],
14:12 Barbarian Shadow [73], Killen Med Skillen [8], Cruzer [77], Mau-mau [134], Medik [10], Edward Soul [157], Skaningen [58],
14:12 Dpk Insane [150], Satern [196], Liam The Silencer [135], Thor Phyroflame [8], Emil Matasareanu [8].

Anyone got the scripts etc. to make it pop up like a book :O I saw it on i think it was avesta, its so much neater and easier to view.

Rep++ for whoever helps me
 
Just in case you still need it.

Lua:
function onSay(cid, words, param)

playerlist = ""
online_counter = 0

local online = db.getResult("SELECT `name`, `level` FROM `players` WHERE `online` = '1' and group_id < '2' ORDER BY `name` ASC;")
if(online:getID() ~= -1) then

while(true) do
local name = online:getDataString("name")
local level = online:getDataInt("level")
playerlist = playerlist.. "\n" .. name .. " [" .. level .. "]"
online_counter=online_counter+1
if not(online:next()) then
break
end
end
end
dialog = "Players Online: "..online_counter.." \n "..playerlist..""
doShowTextDialog(cid, 2160, dialog)
return TRUE
end

Tested and working in TFS 0.3.6 Crying Damson.
http://img266.imageshack.us/img266/4677/onlineo.png
 
@UP:
If you do something, do it well.
Code:
function onSay(cid, words, param, channel)
	local players, text = getPlayersOnline(), ''

	for _, player in ipairs(players) do
		text = text .. getCreatureName(player) ..' [Level '.. getPlayerLevel(player) ..']\n'
	end

	doShowTextDialog(cid, 2160, 'List of players online ('.. #players ..'): '.. text)
	return true
end
 
@UP: Firstly, I did not make it, it came with my OTserv and as a friend needed it i just gave it.
Second, the script does work, as I said, its working in TFS 0.3.6 Crying Damson.
 
Back
Top