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

Lua something like getplayersonscreen tfs0.4

Hernest

New Member
Joined
Jul 26, 2010
Messages
152
Reaction score
3
Location
poland
Hello, is there any function like getPlayersOnScreen(cid) which will return a number of players on screen?
 
getSpectators(centerPos, rangex, rangey[, multifloor = false])
returns a table of creatures around the position.

you can get the players posistion and remove all non player creatures from the table to make it get all the players on the screen for a player.
 
Back
Top