Raised This Month: $32 Target: $400
 8% 

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 , 15: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 13:37.
HerrMagic is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-25-2020 , 22: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 , 08: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?
Drixevel is offline
HerrMagic
Junior Member
Join Date: Oct 2020
Location: Germany
Old 01-10-2021 , 13: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 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 19:26.


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