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

[REQUEST] Using SayText2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Saul
Junior Member
Join Date: Jun 2007
Old 06-23-2007 , 10:10   [REQUEST] Using SayText2
Reply With Quote #1

I'm just wondering how SayText2 works. I think this is the message-mode you can use to send a player's teamcolour and the lightgreen / green colours aswell (Just like the radio chat).

Could somebody give me any examples?

Thanks in advance,
- Saul.
Saul is offline
Send a message via MSN to Saul
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-23-2007 , 11:58   Re: [REQUEST] Using SayText2
Reply With Quote #2

SayText2 is CSS Only, and unless your plugin is CSS Only it's usually advised agains using.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Saul
Junior Member
Join Date: Jun 2007
Old 06-23-2007 , 11:59   Re: [REQUEST] Using SayText2
Reply With Quote #3

Yes, my plugin is CS:S only.
Saul is offline
Send a message via MSN to Saul
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 06-23-2007 , 12:08   Re: [REQUEST] Using SayText2
Reply With Quote #4

Quote:
Originally Posted by FlyingMongoose View Post
SayText2 is CSS Only
LIIIEEESS!!!!
__________________

MFZB Gaming Community

[ www.mfzb.de ]

Knagg0 is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 06-23-2007 , 12:48   Re: [REQUEST] Using SayText2
Reply With Quote #5

As far as I know, SayText2 is only a formatting version of SayText anyways. SayText can use colors as well, so in my opinion, there is no real purpose in using SayText2.
__________________
sslice is offline
Saul
Junior Member
Join Date: Jun 2007
Old 06-23-2007 , 12:51   Re: [REQUEST] Using SayText2
Reply With Quote #6

Well can somebody give me an example of how to have green and lightgreen, aswell as colouring a players name (depending on their team).
Saul is offline
Send a message via MSN to Saul
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 06-23-2007 , 12:59   Re: [REQUEST] Using SayText2
Reply With Quote #7

Quote:
Originally Posted by Saul View Post
Well can somebody give me an example of how to have green and lightgreen, aswell as colouring a players name (depending on their team).
That's not possible... For that you need SayText2.
I'll write you an example...
__________________

MFZB Gaming Community

[ www.mfzb.de ]


Last edited by Knagg0; 06-23-2007 at 13:17.
Knagg0 is offline
Saul
Junior Member
Join Date: Jun 2007
Old 06-23-2007 , 13:01   Re: [REQUEST] Using SayText2
Reply With Quote #8

It is possible, I was on a server a minate ago and HLStatsX was doing it...
Like:
HLStatsX: dark0r got killed by bot1
I swear...
Saul is offline
Send a message via MSN to Saul
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 06-23-2007 , 13:14   Re: [REQUEST] Using SayText2
Reply With Quote #9

Here is a SayText2 example

And here is what you want:



Code:
GetClientName(client, sName, sizeof(sName));
GetClientName(attacker, sName2, sizeof(sName2));

SayText2(0, attacker, true, "\x01HLStatsX : \x04%s1\x01 got killed by \x03%s2", sName, sName2, "", "");
__________________

MFZB Gaming Community

[ www.mfzb.de ]


Last edited by Knagg0; 06-23-2007 at 13:47.
Knagg0 is offline
Saul
Junior Member
Join Date: Jun 2007
Old 06-23-2007 , 13:18   Re: [REQUEST] Using SayText2
Reply With Quote #10

Thanks, just I'm not coding it in SourcePawn, I'm doing it in pure C++ (VSP-style). No worries though, I can easily convert it.

By the way, read the post above yours.
Saul is offline
Send a message via MSN to Saul
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 18:50.


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