Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Team Settings
#1
Lightbulb 




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


Attached Files
.rar   TeamSettings.rar (Size: 1.76 KB / Downloads: 86)
Reply

#2
Is it possible to do a custom picture??
Reply

#3
(10-28-2015, 08:35)clemi555 Wrote: Is it possible to do a custom picture??
Not possible
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.