AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC] Colors (1.0.5) (https://forums.alliedmods.net/showthread.php?t=96831)

psychonic 08-22-2009 10:06

Re: [INC] Colors (1.0.1)
 
Quote:

Originally Posted by olj (Post 908997)
Ok, i got it, thanx, no need for double posts :roll:

Whoops :P. Not sure how that happened. They were a whole 2 hours apart.

olj 08-22-2009 17:35

Re: [INC] Colors (1.0.1)
 
Delayed forum glitch? :mrgreen:

nicatronTg 08-31-2009 19:42

Re: [INC] Colors (1.0.1)
 
I'm not sure what's happening, but for some reason colors aren't working in any plugins that use this extension. On most plugins, the {green} tag just shows up as plaintext, as well as all other colors.

I just wrote a quick plugin, and {green} is parsed but it's not actually green.

I'm using the latest stable release of Sourcemod, with HL2DM.

exvel 09-02-2009 06:08

Re: [INC] Colors (1.0.1)
 
Quote:

Originally Posted by nicatronTg (Post 919463)
I'm not sure what's happening, but for some reason colors aren't working in any plugins that use this extension. On most plugins, the {green} tag just shows up as plaintext, as well as all other colors.

I just wrote a quick plugin, and {green} is parsed but it's not actually green.

I'm using the latest stable release of Sourcemod, with HL2DM.

Well, it works for others. I guess you're doing something completely wrong. Can you write an example of how do you use it?

nicatronTg 09-03-2009 20:51

Re: [INC] Colors (1.0.1)
 
CPrintToChatAll("{green}[SM] {default}test.");

exvel 09-04-2009 11:42

Re: [INC] Colors (1.0.1)
 
1 Attachment(s)
Just tested it in HL2:MP, SM 1.2.3. This works for me:

PHP Code:

#include <sourcemod>
#include <colors>

public OnPluginStart()
{
    
RegConsoleCmd("clr_print"Command_ClrPrint);
}

public 
Action:Command_ClrPrint(clientargs)
{
    
CPrintToChatAll("{green}[SM] {default}test.");
    return 
Plugin_Handled;


Have you placed colors.inc into scripting/include folder and added "#include <colors>" in the beginning of the code?

nicatronTg 09-04-2009 18:04

Re: [INC] Colors (1.0.1)
 
I'll run a test, I'll edit back when done.

Edit: Works like a charm now :). Turns out I forgot the closing > on the include definition, I'll bet that was it. Great work mate, I really like this. It adds simple color to chat.

DontWannaName 09-04-2009 21:29

Re: [INC] Colors (1.0.1)
 
Now only if we could get yellow to work without someone findning something.

nicatronTg 09-04-2009 23:30

Re: [INC] Colors (1.0.1)
 
I'd like to add that if your adding colors to a mod and alt-tabbing back ingame once you compile it, you need to rejoin the server in order to see the newly parsed colors.

VideoMaster 09-09-2009 13:33

Re: [INC] Colors (1.0.1)
 
Anyone figure out how to do yellow in TF2 yet?


All times are GMT -4. The time now is 22:58.

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