Raised This Month: $202 Target: $400
 50% 

Activate ffa under 6 players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HerrMagic
Junior Member
Join Date: Oct 2020
Location: Germany
Old 10-22-2020 , 16:16   Activate ffa under 6 players
Reply With Quote #1

Is there a plugin that activates free for all under for example 6 players and and when there are over 6 players it will change to no ffa(teams).


[SOLUTION]

I made this plugin
https://forums.alliedmods.net/showthread.php?t=328123

have fun

Last edited by HerrMagic; 01-10-2021 at 14:37.
HerrMagic is online now
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-25-2020 , 23:15   Re: Activate ffa under 6 players
Reply With Quote #2

Tetris? Super Mario? Football Manager? NHL? Need for speed?
Bacardi is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-26-2020 , 09:46   Re: Activate ffa under 6 players
Reply With Quote #3

Code:
public void OnClientPutInServer(int client)
{
	UpdateFFA();
}

public void OnClientDisconnect_Post(int client)
{
	UpdateFFA();
}

void UpdateFFA()
{
	int count;
	for (int i = 1; i <= MaxClients; i++)
		if (IsClientInGame(i))
			count++;
	
	FindConVar("mp_teammates_are_enemies").BoolValue = (count < 6);
}
Maybe? Maybe not?
__________________
Discord: Drixevel#5049 - Steam Profile
Drixevel is offline
HerrMagic
Junior Member
Join Date: Oct 2020
Location: Germany
Old 01-10-2021 , 14:37   Re: Activate ffa under 6 players
Reply With Quote #4

Made on by my selve but still thank you
https://forums.alliedmods.net/showthread.php?t=328123
HerrMagic is online now
Reply


Thread Tools
Display Modes

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:23.


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