Thread: [Solved] [REQ - TF2]Team name colored
View Single Post
Walgrim
AlliedModders Donor
Join Date: Dec 2015
Location: France
Old 08-20-2016 , 03:37   Re: [REQ - TF2]Team name colored
Reply With Quote #3

Ok so first, thank you for your reply !
So I tried to compile what you said and I get this :

PHP Code:
// namecolorteam.sp(25) : error 029: invalid expression, assumed zero
// namecolorteam.sp(25) : error 029: invalid expression, assumed zero
// namecolorteam.sp(25) : error 017: undefined symbol "CCFF"
// namecolorteam.sp(25) : fatal error 189: too many error messages on one line 
So I used like in morecolors to see because I like trying things, I get this :
PHP Code:
if (CGetTeamColor(client) == 0x99CCFF)
    {
        
CPrintToChatEx(clientclient"{steelblue}%s {default}: %s"sClientNamesMessage)
    }
    else if (
CGetTeamColor(client) == 0xFF4040)
    {
        
CPrintToChatEx(clientclient"{brown}%s {default}: %s"sClientNamesMessage)
    }

So the problems I get in using my code from the time I tried and now, are :
CPrintToChat just print to chat so players can't use (TEAM) canal.

I'm using custom chat colors so the problem is this :
http://puu.sh/qHMwI/42c03660c3.jpg
I tried something with the admin flag root without success (as far as I remember).

The third one is, when I'm dead it's printing like this : Walgrim : blabla
(I think there's something to do with player_death or something but i don't know how to use that).

EDIT : I used return Plugin_Handled because it's replacing the username, Plugin_Handled don't show the chat as you said but it shows the CPrintToChat, now it's printing 2 messages from me without it. (It's like in the picture).
__________________

Last edited by Walgrim; 08-20-2016 at 16:45.
Walgrim is offline