Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

# of Players on a Map


Fbu
 Share

Recommended Posts

Is there some sort of Sub or function or something that checks the amount of players on a given map?

If it helps this is what I'm trying to do

```
'garbage psuedocode
Player steps on custom tile
Checks for proper requirements (mana, items, blah blah)
  if requirements not met send message "You cant warp there right now"
else

I = 0
while I != 9
  check amount of players on map(n+I) < 1
  then warp to map n and stop
  else
  I++

if no maps availible, send message "You cant warp there right now"

```
Bad psuedo code but I think you can see what I mean. I want it to check each map (n, n+1, n+2… n+9) until it finds an empty one and warps you there.

I just want to know if there is a easy way to check amount of players on the map. Can anyone show me the right place to start?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...