View Single Post
Author Message
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 10-10-2009 , 12:19   [EXTENSION] CSS Team Balancer
Reply With Quote #1

This is a simple extension I made for a client so that I could give his donators immunity to the built in team balancer.

I included a sample plugin to help with setup. I will try and get the Linux version compiled, and release the source code today or tommorow.

Example:

Code:
public Action:OnBalancePlayer(client, team)
{
    if(GetUserFlagBits(client) & ADMFLAG_RESERVATION)
    {
        LogMessage("Team Balancer blocked switch of player: %N reason: Immunity", client);
        return Plugin_Handled;
    }

    return Plugin_Continue;
}
Attached Files
File Type: zip css_teambalance.zip (44.1 KB, 281 views)
File Type: zip css_teambalance_source.zip (1.84 MB, 348 views)
__________________

Last edited by CrimsonGT; 10-20-2009 at 11:17.
CrimsonGT is offline