Log in

View Full Version : Offical Server Slots & Stuff for server coding



Lorenc
07-22-2011, 01:48 PM
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 !



#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.

foxtacles
07-22-2011, 09:20 PM
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 ;)

Lorenc
07-23-2011, 04:09 AM
Ahh thanks, I forgot about that xD



#define MAX_PLAYERS (GetMaxServerSlots())


That might do, thanks alot mate ;)