Raised This Month: $51 Target: $400
 12% 

Change maxplayers INGAME


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 10-22-2006 , 16:50   Change maxplayers INGAME
Reply With Quote #1

This plugin will change maxplayers ingame.
Most server providers will NOT like this, so use it with responsibility.
If you server gets suspended by using this plugin, ITS YOUR OWN FAULT.
Not mine.

The command is set_maxplayers, u need rcon acces to do this.
Bug: the server console isnt updated immediately, this can take some seconds.

You need this custom module MemHack wich is windows only, and that makes this plugin windows only too.

Thanks to schnitzelmaker who showed me how to use the MemHack module.

Update to 1.1 Now checks if playernum is lower than slots you want to change to.

I STRONGLY RECOMMAND DO NOT USE THIS AT RENTED SERVERS
THIS PLUGIN IS MADE TO WORK WITH A HOME MADE SERVER
USE AT YOUR OWN RISK!!!

this plugin DOESNT seem to work anymore, it looks like valve made a block for it.
if you want to use this, dont update your server.
Attached Files
File Type: sma Get Plugin or Get Source (maxplayers.sma - 2624 views - 1.1 KB)
File Type: amxx maxplayers.amxx (2.1 KB, 820 views)
__________________
Um, hi.

Last edited by Ramono; 04-14-2007 at 12:55.
Ramono is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 10-22-2006 , 16:58   Re: Change maxplayers INGAME
Reply With Quote #2

Quote:
Originally Posted by Ramono View Post
Most server providers will NOT like this, so use it with responsibility.
In fact, ALL server providers will not like this as they can see it as stealing.

Example...a person rents an 8 man server and then with this plugin can turn it into a 32 man server while only paying for 8 slots. "Stealing" the other 24 slots at no charge.

Just my .02 cents
organizedKaoS is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-22-2006 , 17:07   Re: Change maxplayers INGAME
Reply With Quote #3

I have a feeling this will complety screw up your server. Why? From what little knowledge I have, the engine reserves special slots in the entity table for players which require special attention and makes the rest of them just normal entity slots - which is most likely why you can't already change max players in game..

Just for future refrence, I'm not saying my statement is 100% correct simply because I lack knoweldge on this.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 10-22-2006 , 17:11   Re: Change maxplayers INGAME
Reply With Quote #4

I agree with Zenith77... the thought of this seems like it would definitely break something after altering a previously-run-as-constant value.
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 10-22-2006 , 17:50   Re: Change maxplayers INGAME
Reply With Quote #5

Ive tested its limits, i see no problems whatever i do, only if the maxpayers is higher than 32 the server crashes, but its blocked to do this.
__________________
Um, hi.
Ramono is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-22-2006 , 18:06   Re: Change maxplayers INGAME
Reply With Quote #6

No the only reason you haven't had problems was because no entities were being created during testing. Try running a test script with fakemeta and/or engine creating some entities dynamically with a bunch of players and then come back and tell me it doesn't screw up.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 10-22-2006 , 18:37   Re: Change maxplayers INGAME
Reply With Quote #7

I just did, added some fakeplayers removed added, everything.

I trew grenades builded stuff, removed it again.

I see no problem with this plugin.

Hope this enough for you, fakeplayer plugin is attached, if you want to look at it.

Btw, i found a bug, if playersnum is higher than lowered slots num, the last connected client(s) get a CONNECTION ERROR, so this is fixed now,
Attached Files
File Type: sma Get Plugin or Get Source (fake-playe.sma - 1570 views - 589 Bytes)
__________________
Um, hi.
Ramono is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-22-2006 , 21:12   Re: Change maxplayers INGAME
Reply With Quote #8

Notice how you said fake players, even though are fake they still count as players, make sure that a "normal" entity takes the place of a previously reserved slot.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Locks
Senior Member
Join Date: Sep 2005
Old 10-22-2006 , 22:22   Re: Change maxplayers INGAME
Reply With Quote #9

Just tested it, the server will crash if you set the maxplayers to 32.
Locks is offline
godlike
Senior Member
Join Date: Apr 2005
Old 10-24-2006 , 11:50   Re: Change maxplayers INGAME
Reply With Quote #10

plz delete this. thats all what i have to say , enless this person(forum) wants a lawsuite from gameserver hostings !
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike 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 20:58.


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