AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Activate ffa under 6 players (https://forums.alliedmods.net/showthread.php?t=328028)

HerrMagic 10-22-2020 15:16

Activate ffa under 6 players
 
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

Bacardi 10-25-2020 22:15

Re: Activate ffa under 6 players
 
Tetris? Super Mario? Football Manager? NHL? Need for speed?

Drixevel 10-26-2020 08:46

Re: Activate ffa under 6 players
 
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?

HerrMagic 01-10-2021 13:37

Re: Activate ffa under 6 players
 
Made on by my selve but still thank you
https://forums.alliedmods.net/showthread.php?t=328123


All times are GMT -4. The time now is 05:46.

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