Raised This Month: $51 Target: $400
 12% 

colorchat.inc All colours in one line?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-28-2012 , 06:26   colorchat.inc All colours in one line?
Reply With Quote #1

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
bazhenov93 is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-28-2012 , 12:11   Re: colorchat.inc All colours in one line?
Reply With Quote #2

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
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 04-28-2012 , 12:14   Re: colorchat.inc All colours in one line?
Reply With Quote #3

Can you show a screenshot? I don't think it's possible to show all 4 colors in one message.
__________________
<VeCo> is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-28-2012 , 12:15   Re: colorchat.inc All colours in one line?
Reply With Quote #4

Quote:
Originally Posted by <VeCo> View Post
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"
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-28-2012 , 12:21   Re: colorchat.inc All colours in one line?
Reply With Quote #5

You cannot use both red and blue in a single message.
__________________

Last edited by fysiks; 04-29-2012 at 06:09. Reason: omg, I can't type.
fysiks is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-28-2012 , 14:29   Re: colorchat.inc All colours in one line?
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
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
bazhenov93 is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 04-28-2012 , 14:30   Re: colorchat.inc All colours in one line?
Reply With Quote #7

Show a screenshot then, it's impossible.
__________________
<VeCo> is offline
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 04-28-2012 , 14:44   Re: colorchat.inc All colours in one line?
Reply With Quote #8

I think about that but it is slowhacking. So I will not tell you how to do it.

Last edited by m0skVi4a; 04-28-2012 at 14:53.
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-28-2012 , 15:22   Re: colorchat.inc All colours in one line?
Reply With Quote #9

PM ?
also i don't see slowhack :O
bazhenov93 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-28-2012 , 16:00   Re: colorchat.inc All colours in one line?
Reply With Quote #10

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 12:51.


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