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

Checking players in an area

warsar

Arzeria RlMap Projekt Adm
Joined
Aug 17, 2008
Messages
24
Reaction score
1
Location
Sweden
Is it possible to make a script that just check the amount of players in an given area?

And how do you set conditions in Lua is it similar to java with <, =, > and so on...

Thanks in advance..
 
Last edited:
Nevermind, solved both of them on my own.. Next question though, can you set players currently online on the server as a Lua condition?

Dumb example,
local players = getPlayersOnline()
if (players >= 20) then
....

TFS 0.4

Thanks in advance!
 
Last edited:
< (less than)
> (greater than)
<= (less than or equal)
>= (greater than or equal)
== (equal)
~= (not equal)
 
Back
Top