Raised This Month: $89 Target: $400
 22% 

[share info] message stocks


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 03-19-2007 , 11:02   [share info] message stocks
Reply With Quote #1

four useful message what I'm using. correct me if I wrong, thx.

Code:
stock SendMsg_SayText2(target, color, const String:szMsg[], any:...)

stock SendMsg_HintText(client, const String:szMsg[], any:...)

stock SendMsg_TextMsg(client, type, const String:szMsg[], any:...)

stock SendMsg_HudMsg(client, channel, 
                     Float:x, Float:y, 
                     aRclr, aGclr, aBclr, aTclr, 
                     bRclr, bGclr, bBclr, bTclr, 
                     effect, 
                     Float:fadein, Float:fadeout, 
                     Float:holdtime, Float:fxtime, 
                     const String:szMsg[])
Attached Files
File Type: inc my_message_stocks.inc (4.0 KB, 271 views)
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
BAILOPAN
Join Date: Jan 2004
Old 03-19-2007 , 12:33   Re: [share info] message stocks
Reply With Quote #2

Good stocks! Once we figure out a good way for cross-mod compatibility we'll have a few of these as natives.
__________________
egg
BAILOPAN is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 03-19-2007 , 19:42   Re: [share info] message stocks
Reply With Quote #3

What makes it not cross-mod compatibile right now?
__________________
sslice is offline
BAILOPAN
Join Date: Jan 2004
Old 03-19-2007 , 21:21   Re: [share info] message stocks
Reply With Quote #4

HintText looks like something CS:S only. Similarly, CS:S text messages have their own encoding additions.
__________________
egg
BAILOPAN is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 03-19-2007 , 21:32   Re: [share info] message stocks
Reply With Quote #5

HintText is in the SDK and should work on most mods unless they've changed/disabled it.

I have noticed that in DODS I need to change the first WriteByte (using UTIL_HudHintText as an example) or it prints a funny character. The comment says "// one string" for 1, but I send a space instead. So that may be another example of the encoding additions (unless I'm doing something wrong).
L. Duke is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 03-20-2007 , 00:22   Re: [share info] message stocks
Reply With Quote #6

Hmm, maybe it doesn't even need a byte before the string.
__________________
sslice is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 03-20-2007 , 00:25   Re: [share info] message stocks
Reply With Quote #7

If you mean by the encoding additions the \x03, \x04, etc. then maybe color should just be removed from the param of the stock?

Edit: Nevermind, didn't realise color was the player index.
__________________

Last edited by sslice; 03-20-2007 at 16:23.
sslice is offline
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 03-20-2007 , 01:17   Re: [share info] message stocks
Reply With Quote #8

The stocks was tested in CSS only.
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
Reply


Thread Tools
Display Modes

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 15:57.


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