View Single Post
InB
AlliedModders Donor
Join Date: Aug 2012
Location: Los Angeles
Old 12-03-2012 , 20:27   Re: [HELP] CS:GO >> Admin prefix + Colored name
Reply With Quote #2

IDK if it works with csgo, but this is what i use for css

PHP Code:
public OnPluginStart()
{
    
CreateConVar("acc_version"VERSION"");
    
AddCommandListener(SayHook"say");
}


public 
Action:SayHook(client, const String:command[], args)
{
    new 
AdminId:AdminID GetUserAdmin(client);
    if(
AdminID == INVALID_ADMIN_ID)
        return 
Plugin_Continue;
    
    
decl String:Name[MAX_NAME_LENGTH];
    
decl String:Msg[256];
        
    
GetClientName(clientNamesizeof(Name));
    
GetCmdArgString(Msgsizeof(Msg));
    
Msg[strlen(Msg)-1] = '\0';
    
CPrintToChatAll("[\x05Admin\x01] {teamcolor}%s: {default}%s"NameMsg[1]);
    
    return 
Plugin_Handled;

__________________

Last edited by InB; 12-03-2012 at 20:31.
InB is offline