AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   colorchat.inc All colours in one line? (https://forums.alliedmods.net/showthread.php?t=183885)

bazhenov93 04-28-2012 06:26

colorchat.inc All colours in one line?
 
I have been playing on some servers and I saw messages in chat with 3 different colours in one line.. and i was wondering how I can do the same? I have tried to modifi colorchat.inc, but without result :|

like
PHP Code:

ColorChat(idColorC:type, const msg[], {Float,Sql,Result,_}:...)
{
    static 
message[256];

    switch(
type)
    {
        case 
NORMAL// clients scr_concolor cvar color
        
{
            
message[0] = 0x01;
        }
        case 
GREEN:
        {
            
message[0] = 0x02;
        }
        case 
GREY:
        {
            
message[0] = 0x03;
        }
        case 
RED:
        {    
message[0] = 0x04
        
}
        case 
BLUE:
        {
            
message[0] = 0x05
        
}


I want to write messages with all colours (red,green,blue,grey)..

example: red: [ normal: server red:] grey: some blue: text green: here

Bilal Pro 04-28-2012 12:11

Re: colorchat.inc All colours in one line?
 
This is an quick example how to use colorchat.

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /message""ShowMessage")
}

public 
ShowMessage(id)
{
    new 
name[32]
    
get_user_name(idname31)
    
ColorChat(idGREY"GREY: %s ^4GREEN: %s ^3TEAM COLOR: %s"name)


For this quick example u have to download a file called Colorchat.inc

<VeCo> 04-28-2012 12:14

Re: colorchat.inc All colours in one line?
 
Can you show a screenshot? I don't think it's possible to show all 4 colors in one message.

Bilal Pro 04-28-2012 12:15

Re: colorchat.inc All colours in one line?
 
Quote:

Originally Posted by <VeCo> (Post 1698137)
Can you show a screenshot? I don't think it's possible to show all 4 colors in one message.


its is, if you use for example
PHP Code:

ColorChat(idGREY"grey ^4green ^3team color ^1yellow"


fysiks 04-28-2012 12:21

Re: colorchat.inc All colours in one line?
 
You cannot use both red and blue in a single message.

bazhenov93 04-28-2012 14:29

Re: colorchat.inc All colours in one line?
 
Quote:

Originally Posted by fysiks (Post 1698146)
You cannot use both read and blue in a single message.

But I saw this on a server.. How they did it ? so it's possible

<VeCo> 04-28-2012 14:30

Re: colorchat.inc All colours in one line?
 
Show a screenshot then, it's impossible.

m0skVi4a 04-28-2012 14:44

Re: colorchat.inc All colours in one line?
 
I think about that but it is slowhacking. So I will not tell you how to do it.

bazhenov93 04-28-2012 15:22

Re: colorchat.inc All colours in one line?
 
PM ?
also i don't see slowhack :O

Exolent[jNr] 04-28-2012 16:00

Re: colorchat.inc All colours in one line?
 
It's possible by changing the player's default chat color.
For example, change the default yellow to red.
Then use the default (now red) color with the CT team (blue) color.

It is slowhacking because you have to change their cvars, and I don't think a player would accept such a change just for a message style.


All times are GMT -4. The time now is 07:48.

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