- Joined
- Dec 23, 2014
- Messages
- 2,474
- Solutions
- 68
- Reaction score
- 1,130
How does otservlist get the amount of players from a server? How can I create a code that will remove players from the online list it reads but allow the players to remain online.
For the first you have to add kick if player is 15 minutes in idle.Yes, I am trying to avoid player spoofing because I allow MC and players to sit in trainers without an auto kick. I need some way to remove players who are MC or training from the online counter. I am using 8.6 TFS 0.3.6 crying damson. I will pay for this if I need to.
So you are spoofing thenThe problem is I don't want to kick players after 15 minutes.
The problem is I don't want to kick players after 15 minutes.
local max_players = 4
function onLogin(player)
local t, ip = {}, player:getIp()
local players = getPlayersByIPAddress(ip)
local size = #players
if size ~= 0 and size >= max_players then
for i = 1, size do
t[i] = '-> ' .. Player(players[i]):getName()
end
return false
end
return true
end
Here is code for TFS 1.0-1.3. Won't work with your repo, but is a good example.
Very important - Rules change on otservlist.org
I say again.
I need some way to remove players who are MC or training from the online counter. I am using 8.6 TFS 0.3.6 crying damson. I will pay for this if I need to.
click his link, it's the correct system now.I say again.
I need some way to remove players who are MC or training from the online counter. I am using 8.6 TFS 0.3.6 crying damson. I will pay for this if I need to.