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

Autochange slots when player join


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 10-11-2013 , 10:16   Autochange slots when player join
Reply With Quote #1

Search for plugin that auto change
sv_visiblemaxplayers to 20

when it is 15players in game

and change back for normal when its lower then 15players ingame


ex: it is 40slots to begin when it is 15players are ingame
sv_visiblemaxplayers change from -1 (40) to 20


this link only add slots i want decrease slots.

LINK TO ADD SLOTS

Last edited by sixten_8_9@; 10-13-2013 at 05:59.
sixten_8_9@ is offline
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 10-14-2013 , 19:14   Re: Autochange slots when player join
Reply With Quote #2

Refresh so people can found it and help.
__________________
My Nick name is Nouton^
i have played cs for around 12years+
have build servers for about 12years
my website and my servers are: http://Nouton.se

i host at home did build my own server station for around 1300$.
sixten_8_9@ is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 10-14-2013 , 19:17   Re: Autochange slots when player join
Reply With Quote #3

I don't think Valve would like it...
__________________
...

Last edited by Oshizu; 10-14-2013 at 19:21.
Oshizu is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 10-14-2013 , 22:03   Re: Autochange slots when player join
Reply With Quote #4

i agree with oshizu(sakurasou, sakurasou, sakurasou!!!)... i don't really think valve would like it too, it sounds like you are faking the slots when your server is low of people for people to think that it's a big server and join it, while the server can only handle 20 players.
well, but as i don't know if you are unethical and you could be using this for other purposes(like creating bots when player count < 15 without decreasing real player slots), here you go:
Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

new Handle:slotsconvar;

public OnPluginStart(){

	slotsconvar = FindConVar("sv_visiblemaxplayers");

}

public OnClientConnected(client){

	new count = 0;
	for(new i = 1; i <= MaxClients; i++){

		if(IsClientConnected(i)){

			count++;

		}

	}
	if(count >= 15){

		if(GetConVarInt(slotsconvar) != 20){

			SetConVarInt(slotsconvar, 20);

		}

	}else if(GetConVarInt(slotsconvar) != 40){

		SetConVarInt(slotsconvar, 40);

	}

}
__________________
sie sind das essen und wir sind die jäger!
Bimbo1 is offline
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 10-15-2013 , 01:00   Re: Autochange slots when player join
Reply With Quote #5

Quote:
Originally Posted by Bimbo1 View Post
i agree with oshizu(sakurasou, sakurasou, sakurasou!!!)... i don't really think valve would like it too, it sounds like you are faking the slots when your server is low of people for people to think that it's a big server and join it, while the server can only handle 20 players.
well, but as i don't know if you are unethical and you could be using this for other purposes(like creating bots when player count < 15 without decreasing real player slots), here you go:
Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

new Handle:slotsconvar;

public OnPluginStart(){

	slotsconvar = FindConVar("sv_visiblemaxplayers");

}

public OnClientConnected(client){

	new count = 0;
	for(new i = 1; i <= MaxClients; i++){

		if(IsClientConnected(i)){

			count++;

		}

	}
	if(count >= 15){

		if(GetConVarInt(slotsconvar) != 20){

			SetConVarInt(slotsconvar, 20);

		}

	}else if(GetConVarInt(slotsconvar) != 40){

		SetConVarInt(slotsconvar, 40);

	}

}
thanks
__________________
My Nick name is Nouton^
i have played cs for around 12years+
have build servers for about 12years
my website and my servers are: http://Nouton.se

i host at home did build my own server station for around 1300$.

Last edited by sixten_8_9@; 10-15-2013 at 01:52.
sixten_8_9@ 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 16:02.


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