Raised This Month: $ Target: $400
 0% 

Help change team color to white


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AGONN
Member
Join Date: Jan 2018
Old 01-19-2018 , 16:13   Help change team color to white
Reply With Quote #1

hi guys i need to change team color on this plugin to white , what shall i Do !

Code:
#include <amxmodx> 

#define PLUGIN "admin welcome message" 
#define VERSION "1.0" 
#define AUTHOR "c0Smos" 

public client_putinserver(id) 
{ 
    set_task(1.0, "Welcome_Message", id); 
} 

public plugin_precache()
{
    precache_sound("misc/adminsOnline.wav")
}


public Welcome_Message(id) 
{ 
    new szName[32]; 
    get_user_name(id, szName, sizeof(szName)); 
    if(get_user_flags(id) & ADMIN_RESERVATION) 
    { 
        client_printc(0, "!g[Special Player] !g[%s] !tHas Just connected. Hackers be aware!", szName) 
        client_cmd(0,"spk misc/adminsOnline")
    } 
    else if(get_user_flags(id) & ADMIN_KICK) 
    { 
        client_printc(0, "!g[Special Player] !g[%s] !tHas Just connected. Hackers beaware!", szName) 
        client_cmd(0,"spk misc/adminsOnline")
    } 
} 


// Colour Chat  
stock client_printc(const id, const input[], any:...) 
{ 
    new count = 1, players[32]; 
    static msg[191]; 
    vformat(msg, 190, input, 3); 
    
    replace_all(msg, 190, "!g", "^x04"); // Green Color 
    replace_all(msg, 190, "!n", "^x01"); // Default Color 
    replace_all(msg, 190, "!t", "^x03"); // Team Color 
    
    if (id) players[0] = id; else get_players(players, count, "ch"); 
    { 
        for (new i = 0; i < count; i++) 
        { 
            if (is_user_connected(players[i])) 
            { 
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]); 
                write_byte(players[i]); 
                write_string(msg); 
                message_end(); 
            }     
        } 
    } 
}
AGONN is offline
Hey
Member
Join Date: Dec 2017
Old 01-19-2018 , 16:36   Re: Help change team color to white
Reply With Quote #2

AFAIK you can't use white color, the only supported ones are(Green, Red, Blue, Yellow(default)).
Hey is offline
AGONN
Member
Join Date: Jan 2018
Old 01-19-2018 , 17:02   Re: Help change team color to white
Reply With Quote #3

Quote:
Originally Posted by Hey View Post
AFAIK you can't use white color, the only supported ones are(Green, Red, Blue, Yellow(default)).
i think that you are wrong , because i've seen some plugins show white color in color team.
AGONN is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 01-19-2018 , 18:48   Re: Help change team color to white
Reply With Quote #4

White color is the Spectators color.
__________________
My English is A0
E1_531G is offline
Hey
Member
Join Date: Dec 2017
Old 01-19-2018 , 19:59   Re: Help change team color to white
Reply With Quote #5

yeah but as i said if you paid attention:

Quote:
Originally Posted by Hey View Post
AFAIK you can't use white color, the only supported ones are(Green, Red, Blue, Yellow(default)).
Hey is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-19-2018 , 20:11   Re: Help change team color to white
Reply With Quote #6

It is possible to use Red, Blue, and White (certain color chat commands support this) but it is not possible to use any combination of these three colors, it can only be one in a single message. I.e. they are mutually exclusive because they are based on the team that you are on (the functions that allow you to use these colors at will actually change your team briefly, send the message, and change it back). I'm not sure if this is supported functionality in 1.8.3's color chat function.
__________________
fysiks is offline
Hey
Member
Join Date: Dec 2017
Old 01-19-2018 , 21:05   Re: Help change team color to white
Reply With Quote #7

The white color cannot be used in a normal chatcolor/colorchat stock/inc/plugin... thing cuz it's just not possible, unless you use a hack method or maybe you can by using "That hack module" Orpheu.

Last edited by Hey; 01-19-2018 at 21:06.
Hey is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 01-20-2018 , 03:16   Re: Help change team color to white
Reply With Quote #8

Quote:
Originally Posted by Hey View Post
The white color cannot be used in a normal chatcolor/colorchat stock/inc/plugin... thing cuz it's just not possible, unless you use a hack method or maybe you can by using "That hack module" Orpheu.
check cromchat include file and then prove us all wrong
__________________
retired chump
DjSoftero is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-20-2018 , 09:17   Re: Help change team color to white
Reply With Quote #9

@Hey - have you been living under a rock? All colorchat includes that allow you to specify a color support the white color. The method for setting that color is the same as for red and blue.
__________________

Last edited by OciXCrom; 01-20-2018 at 09:17.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Hey
Member
Join Date: Dec 2017
Old 01-20-2018 , 10:45   Re: Help change team color to white
Reply With Quote #10

well i haven't been seeing anyone using the white color in chat plugin or something else in fact i barely used color chat myself and i only used the green, red, blue, yellow because they were the only colors that i saw in like 2 inc files and 1 stock so, anyway... for the author go search buddy it can't be that hard, or there use this it's perfect : https://forums.alliedmods.net/showthread.php?t=295046
Hey is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode