MAX_PLAYERS Question ?
#1

Is MAX_PLAYERS always equal to 500, or it depends on the maxplayers in server.cfg ?

Thanks.
Reply
#2

It is never the absolute maximum (500) unless you set your config to 500. Just think of the calculations of it were always maximum :\

So, MAX_PLAYERS is from the config...
Reply
#3

Quote:
Originally Posted by zєяσмαиѕтєя
Is MAX_PLAYERS always equal to 500, or it depends on the maxplayers in server.cfg ?

Thanks.
MAX_PLAYERS is defined in a_samp.inc file, you can change it in the include file or just do like this in your gamemode:
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (200) // your own amount.
or you could use GetMaxPlayers which reads from server.cfg file.
Reply
#4

Meh, I looked everywhere for the MAX_PLAYER declaration (Maybe because I thought it was a Declaration for some reason)

So I thought it was from the config (I must be thinking of GetMaxPlayers)
Reply
#5

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)