PDA

View Full Version : Player counter



guiismiti
18th December 2014, 04:12
Hi again,

I would like to not count bots as online players, so they won't use slots.
Can anybody tell me where is the function responsible for this?

Thanks in advance.

Ni3ls
18th December 2014, 08:46
I think its hardcoded and cant be done. And bots will always take in slots. You cant have a 20 slots server with 10 bots and still allow 20 players

guiismiti
18th December 2014, 15:07
I think its hardcoded and cant be done. And bots will always take in slots. You cant have a 20 slots server with 10 bots and still allow 20 players

I was thinking about creating two new functions.
One would be called on playerConnect - would increase one slot if it's not a bot
And the other would be called on disconnect - would decrease one slot if it's not a bot

But I would need to ask permission to the server provider to change that...

Tally
18th December 2014, 15:36
I was thinking about creating two new functions.
One would be called on playerConnect - would increase one slot if it's not a bot
And the other would be called on disconnect - would decrease one slot if it's not a bot

But I would need to ask permission to the server provider to change that...

Only 1 major problem with that - you cannot change the player number without restarting the server.