MAX_PLAYERS stores MaxPlayer + bot playing? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MAX_PLAYERS stores MaxPlayer + bot playing? (
/showthread.php?tid=95278)
MAX_PLAYERS stores MaxPlayer + bot playing? -
antonio20001 - 03.09.2009
it's not a stupid answer, if you think that ALL the script use a cicle from 0 to MAX_PLAYERS
So:
if max players are 100
if currenly players are 100
if currently bots are 10
remember that bots have their univocal ID
the cicle will take from 0 to 100
but the effective MAX ids are to 109 because:
100 are players + 10 bots = 110 (-1 because count starts from 0 not from 1)
The last 10 players will be not included to the cicle...
Re: MAX_PLAYERS stores MaxPlayer + bot playing? -
CracK - 03.09.2009
Here -
http://forum.sa-mp.com/index.php?topic=117573.0
Re: MAX_PLAYERS stores MaxPlayer + bot playing? -
d0 - 03.09.2009
you start the server with 100 slots then you create 10 npcs/bots and your slotnumber is 90
Re: MAX_PLAYERS stores MaxPlayer + bot playing? -
JaTochNietDan - 03.09.2009
MAX_PLAYERS is a static define of 500, it does not change.
Bots join as players, they have ID's as players and they take up slots, but it will not make a difference to the MAX_PLAYERS define.