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

How to make this?

dogox222

%00
Joined
Jan 10, 2011
Messages
71
Reaction score
0
Hi, I've heard that if your servers gets the online players up too fasts (like 0 to 200 players in 2mins) you'll be banned from otservlist.
I want to do a system that allows to connect X players every 10 minutes. For example:
20 players the firsts 10 minute.
50 players next 10 minutes.
100 players next 10 minutes.
And so on.

PD: Well, maybe it's not connect X players every, maybe it's change the maxplayers every 10 minutes.

Either way, can somebody help me? Thanks.
 
Last edited:
OTServlist uses a system to find servers that spoof, no one knows how the system works except Xinn. Just because you get 200 players in 2 minutes it doesn't mean that you will get banned for spoofing, but I guess if you actually are spoofing you will get banned in no time.
 
onStartup you set a storage value:
setStorageValue(483288734, os.time())

onLogin you check:

local playersOnline = #getPlayersOnline()
if getStorageValue(483288734)+10*60 > os.time() and playersOnline >= 20 then
return false
elseif getStorageValue(483288734)+20*60 > os.time() and playersOnline >= 50 then
return false
elseif getStorageValue(483288734)+30*60 > os.time() and playersOnline >= 100 then
return false
end
 
Back
Top