ENG Text (Click to View)
RUS Text (Click to View)
Source Code
PHP Code:
using System;
using Addon;
namespace TeamSettings
{
public class TeamsSettings : CPlugin
{
public override void OnServerLoad()
{
//ICON
SetDvar("g_TeamIcon_Axis", GetServerCFG("TeamSettings", "TeamIconAxis", "cardicon_biohazard"));
SetDvar("g_TeamIcon_Allies", GetServerCFG("TeamSettings", "TeamIconAllies", "cardicon_comic_price"));
//ICON
//Names
SetDvar("g_TeamName_Axis", GetServerCFG("TeamSettings", "TeamNameAxis", "^1Axis"));
SetDvar("g_TeamName_Allies", GetServerCFG("TeamSettings", "TeamNameAllies", "^2Allies"));
//Names
}
public override void OnPlayerConnect(ServerClient Client)
{
//ICON
SetDvar("g_TeamIcon_Axis", GetServerCFG("TeamSettings", "TeamIconAxis", "cardicon_biohazard"));
SetDvar("g_TeamIcon_Allies", GetServerCFG("TeamSettings", "TeamIconAllies", "cardicon_comic_price"));
//ICON
//Names
SetDvar("g_TeamName_Axis", GetServerCFG("TeamSettings", "TeamNameAxis", "^1Axis"));
SetDvar("g_TeamName_Allies", GetServerCFG("TeamSettings", "TeamNameAllies", "^2Allies"));
//Names
}
public override void OnMapChange()
{
//
SetDvar("g_TeamIcon_Axis", GetServerCFG("TeamSettings", "TeamIconAxis", "cardicon_biohazard"));
SetDvar("g_TeamIcon_Allies", GetServerCFG("TeamSettings", "TeamIconAllies", "cardicon_comic_price"));
//ICON
//Names
SetDvar("g_TeamName_Axis", GetServerCFG("TeamSettings", "TeamNameAxis", "^1Axis"));
SetDvar("g_TeamName_Allies", GetServerCFG("TeamSettings", "TeamNameAllies", "^2Allies"));
//Names
}
}
}
Add to sv_config
Quote:[TeamSettings]
TeamNameAxis=^1Bad Boys
TeamNameAllies=^2Good Boys
TeamIconAxis=cardicon_biohazard
TeamIconAllies=cardicon_comic_price
All Card and Title icons
Credits:
@S3VDIT0 - Made the plugin
@frst_ - Special thanks