• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

get the highest level online player [860]

5lave Ots

Active Member
Joined
Oct 2, 2017
Messages
247
Solutions
1
Reaction score
40
Location
Ankrahmun
hello outlander
I wonder to get something, that displays the highscrore of level from online players, that will be displayed on a statue on look
kind regards
using tfs 0.4 windows 860
thanks
 
Well, if you only need to get the 1st place (highest level) it's ezpz:

LUA:
local level = 0
local name = ""
for _, pid in ipairs(getPlayersOnline()) do
    if getPlayerLevel(pid) > highest then
        name = getPlayerName(pid)
        highest = getPlayerLevel(pid)
    end
end
print(name . " level: " . highest)
 
thanks
do you know why when I atk any player in game, the server freezes,,, no error, only get white skull and server freeze
tried to disable all creaturescripts, and get a blank groups file , but nothing happens
 
Back
Top