change maxplayers
#1

how i can change maxplayers .. no restart server ?
Reply
#2

Without restarting the server, Not possible.
You have to close the server, change the server.cfg or the define and restart it.
Reply
#3

ok thx
Reply
#4

Actually, you can decrease the server slots by adding NPCs. One NPC connected to the server decreases the maxplayers limit by one. However, I don't know any method to increase the slots without restarting the server. Probably by kicking those NPCs?
Reply
#5

YSF has a function for this.

https://sampforum.blast.hk/showthread.php?tid=513499

Quote:

native SetMaxPlayers(maxplayers);
native SetMaxNPCs(maxnpcs);

Reply
#6

Quote:
Originally Posted by Michael B
Посмотреть сообщение
Actually, you can decrease the server slots by adding NPCs. One NPC connected to the server decreases the maxplayers limit by one. However, I don't know any method to increase the slots without restarting the server. Probably by kicking those NPCs?
No, he can't increase it without restarting the server.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)