AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help change team color to white (https://forums.alliedmods.net/showthread.php?t=304568)

AGONN 01-19-2018 16:13

Help change team color to white
 
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();
            }   
        }
    }
}


Hey 01-19-2018 16:36

Re: Help change team color to white
 
AFAIK you can't use white color, the only supported ones are(Green, Red, Blue, Yellow(default)).

AGONN 01-19-2018 17:02

Re: Help change team color to white
 
Quote:

Originally Posted by Hey (Post 2572983)
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.

E1_531G 01-19-2018 18:48

Re: Help change team color to white
 
White color is the Spectators color.

Hey 01-19-2018 19:59

Re: Help change team color to white
 
yeah but as i said if you paid attention:

Quote:

Originally Posted by Hey (Post 2572983)
AFAIK you can't use white color, the only supported ones are(Green, Red, Blue, Yellow(default)).


fysiks 01-19-2018 20:11

Re: Help change team color to white
 
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.

Hey 01-19-2018 21:05

Re: Help change team color to white
 
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.

DjSoftero 01-20-2018 03:16

Re: Help change team color to white
 
Quote:

Originally Posted by Hey (Post 2573022)
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

OciXCrom 01-20-2018 09:17

Re: Help change team color to white
 
@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.

Hey 01-20-2018 10:45

Re: Help change team color to white
 
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


All times are GMT -4. The time now is 21:19.

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