Raised This Month: $32 Target: $400
 8% 

[INC] More Colors (1.9.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-24-2014 , 16:04   Re: [INC] More Colors (1.9.1)
Reply With Quote #361

Quote:
Originally Posted by maxolahird View Post
Meaning I should use PREFIX instead of "Prefix" and then define PREFIX in the plugin?

Like

#define PREFIX "\x04[Tag here]\x01 "

and

CShowActivity2(admin, PREFIX, "%t", translationName, "_s", targetName, reason);


If so, is it possible to use {green} instead of \x04?
Yes and yes.
__________________
Dr. McKay is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 03-24-2014 , 16:49   Re: [INC] More Colors (1.9.1)
Reply With Quote #362

Ok thanks for the help once again Kay, have a nice day!
maxolahird is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 03-24-2014 , 17:13   Re: [INC] More Colors (1.9.1)
Reply With Quote #363

I'm putting the colored tag on the translation phrases.... I tried like this

CShowActivity2(admin, "%t", translationName, "_s", targetName, reason);

But all it shows is

%tMuted player reason

Last edited by maxolahird; 03-24-2014 at 17:13.
maxolahird is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-24-2014 , 17:55   Re: [INC] More Colors (1.9.1)
Reply With Quote #364

Quote:
Originally Posted by maxolahird View Post
I'm putting the colored tag on the translation phrases.... I tried like this

CShowActivity2(admin, "%t", translationName, "_s", targetName, reason);

But all it shows is

%tMuted player reason
Quote:
Originally Posted by Dr. McKay View Post
The second parameter of CShowActivity2 (and regular ShowActivity2) is a prefix to be prepended to the message. It doesn't support formatting.
__________________
Dr. McKay is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 03-31-2014 , 17:50   Re: [INC] More Colors (1.9.1)
Reply With Quote #365

Ciao,

is there way, how to get it working in Insurgency? I tried
PHP Code:
CReplaceColorCodessText__sizeofsText ) ); // sText = "{whitesmoke}My message." 
But it only printed message like
Code:
F5F5F5My message.
and whole message was white (ins default chat color).
KissLick is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-31-2014 , 18:06   Re: [INC] More Colors (1.9.1)
Reply With Quote #366

No, and you're not supposed to call CReplaceColorCodes directly.
__________________
Dr. McKay is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-31-2014 , 18:32   Re: [INC] More Colors (1.9.1)
Reply With Quote #367

Quote:
Originally Posted by Dr. McKay View Post
you're not supposed to call CReplaceColorCodes directly.
...then mark it as Static so it's not visible outside the include.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-01-2014 , 06:23   Re: [INC] More Colors (1.9.1)
Reply With Quote #368

Well, if I use simple print chat stock

PHP Code:
CPrintToChatAll"{vintage}test" ); 
I again get printed message like
Code:
476291test
:-(

EDIT:

Ou I missed that and in
Quote:
Originally Posted by Dr. McKay View Post
No, and you're not supposed
:-(

Last edited by KissLick; 04-01-2014 at 06:30.
KissLick is offline
SephirothSG
SourceMod Donor
Join Date: Jun 2013
Old 04-01-2014 , 06:56   Re: [INC] More Colors (1.9.1)
Reply With Quote #369

Is it just me or has {ANCIENT} Stopped working in TF2? It was working perfectly yesterday...
SephirothSG is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-01-2014 , 13:27   Re: [INC] More Colors (1.9.1)
Reply With Quote #370

Quote:
Originally Posted by SephirothSG View Post
Is it just me or has {ANCIENT} Stopped working in TF2? It was working perfectly yesterday...
It's most likely just you.
__________________
Dr. McKay 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 14:19.


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