Max players - 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)
+--- Thread: Max players (
/showthread.php?tid=374859)
Max players -
CrazyChoco - 04.09.2012
Hai, how can i make it like if i do this code
pawn Код:
public OnGameModeInit ()
{
SendRconCommand("maxplayers 23");
return 1;
}
How can i make it change to the amount of players, instead of changing it in the config?
I always get this in console
Quote:
OnGameo
maxplayers = 50 (int, read-only)
|
Re: Max players -
BlackBank - 04.09.2012
If you look at your console it says 'read-only'.
You can't change the maxplayers value when the server is on.
Re: Max players -
leonardo1434 - 04.09.2012
Actually you can, By a plugin, you need have some knowledge about memory hacking.
Re: Max players -
CrazyChoco - 04.09.2012
Well, you know if it is an plugin which is already made?
Re: Max players -
leonardo1434 - 04.09.2012
it won't be made, by creating this plugin you can also add more than 500 slots. By the logic, for normal samp servers it has a limit made by the samp team.
so.. better stay without chaging it in game.
Re: Max players -
CrazyChoco - 04.09.2012
hmmh, leonardo you are pointing in something there :P Thanks for help anyway