• Vote in November Mapping Competition to select a winner!
  • 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!

Count players with storage ID, php

PB3LL

Member
Joined
Oct 30, 2015
Messages
60
Reaction score
8
I am looking for a php script that will display a table showing the amount of players in trainers.

On my server i want to count and display the amount of players in trainers, depending on the trainers they are using. Without listing the player names is it possible to show how many players are using the trainers? Also to show the talkaction to join a trainer location.

I imagine the code would need to increase by 1 every time a player joins a specific trainer area and decrease by 1 every time the player leaves that area. I do have multiple trainer locations.

Example:
Trainers in Town 1 - 7/10 trainers being used - !trainer1
Trainers in Town 2 - 4/10 trainers being used - !trainer2
 
Last edited:
Top