Raised This Month: $ Target: $400
 0% 

Add slots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
User32
Member
Join Date: Aug 2005
Old 08-19-2005 , 19:25   Add slots
Reply With Quote #1

How would you add more player slots through a plugin? like If I had 6 slots, and change It to 20 or w/e?
__________________
You just read this sentence! Isn't that fantastic?
User32 is offline
DahVid
Senior Member
Join Date: Jun 2005
Old 08-19-2005 , 19:26  
Reply With Quote #2

You can't update it in realtime.
DahVid is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 08-19-2005 , 19:27  
Reply With Quote #3

you can't.
all you can do is make the server look like it has more slots, but people still wouldn't be able to join.

the amount of slots is set when you start the server, so if you don't
have access to the command line of starting hlds,
you can't do anything.
FeuerSturm is offline
User32
Member
Join Date: Aug 2005
Old 08-19-2005 , 19:27  
Reply With Quote #4

Er, like If the server Is about to start, or something, like changes the slot number to 20. Damn I suck at explaining this.
__________________
You just read this sentence! Isn't that fantastic?
User32 is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 08-19-2005 , 19:28  
Reply With Quote #5

User slots are allocated at map change. get_maxplayers() will tell you how many slots are allocated. You cannot change maxplayers when the server is running. You must change it before the server turns on.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
User32
Member
Join Date: Aug 2005
Old 08-19-2005 , 19:29  
Reply With Quote #6

Quote:
Originally Posted by Twilight Suzuka
User slots are allocated at map change. get_maxplayers() will tell you how many slots are allocated. You cannot change maxplayers when the server is running. You must change it before the server turns on.
Yes. That's what I want to do! Change the slot number before It turns on.
__________________
You just read this sentence! Isn't that fantastic?
User32 is offline
DahVid
Senior Member
Join Date: Jun 2005
Old 08-19-2005 , 19:31  
Reply With Quote #7

edit autoexec.cfg
maxplayers "5"
DahVid is offline
User32
Member
Join Date: Aug 2005
Old 08-19-2005 , 19:32  
Reply With Quote #8

Ah, yes. Perhaps that would work.
__________________
You just read this sentence! Isn't that fantastic?
User32 is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 08-19-2005 , 20:10  
Reply With Quote #9

But it won't change maxplayers when the server changes a map or restarts. Only when the server turns on after being completely shut down.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
User32
Member
Join Date: Aug 2005
Old 08-19-2005 , 20:23  
Reply With Quote #10

But It does not allow max player change after changelevel or w/e -- I think. Maybe If I added maxplayers "20" In AMXX.cfg that would do It, because AMXX.cfg reloads It's content after each map change.
__________________
You just read this sentence! Isn't that fantastic?
User32 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode