Offical Server Slots & Stuff for server coding
So, I was wondering, before I start scripting I really need to know how many slots there are, I saw a server with 7000 which was pretty cool/funny XD But in the beta days of SA-MP 0.1 etc Max server slots were 100, which I'm guessing fallout MP could possibly hold that many.
So yeah. If possible bump this thread and reply !
Code :
#define MAX_PLAYERS 100 // IDK?
#define MAXVAULTCLIENTS MAX_PLAYERS
May or may not had of read some stuff in the forum, not sure
Another thing, is there any method to getting the player to crash/disconnect?
Kick(clientID), Ban(clientID) should be made soon xD
Thanks, Lorenc.
Re: Offical Server Slots & Stuff for server coding
Functions as Kick and Ban will be implemented very soon (maybe with the next update), as well as other scripting related stuff. You will than be able to retrieve the maximum player slots via a function GetMaxServerSlots(). It doesn't really make sense to iterate from 0 to MAX_PLAYERS and checking the connected state for every slot ;)
Re: Offical Server Slots & Stuff for server coding
Ahh thanks, I forgot about that xD
Code :
#define MAX_PLAYERS (GetMaxServerSlots())
That might do, thanks alot mate ;)