Raised This Month: $ Target: $400
 0% 

SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011


Post New Thread Reply   
 
Thread Tools Display Modes
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 10-29-2011 , 15:11   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #191

TF2 has PURPLE color in chat with the halloween update.

Doh I hear it's part of the Yellow, black, text issue.

I wish there was a way to force the variable color to a specific color. TF2 does it, I wish sourcemod could hack in there and do it too!

Last edited by Thraka; 10-29-2011 at 17:09.
Thraka is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 10-29-2011 , 17:54   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #192

Quote:
Originally Posted by Thraka View Post
TF2 has PURPLE color in chat with the halloween update.

Doh I hear it's part of the Yellow, black, text issue.

I wish there was a way to force the variable color to a specific color. TF2 does it, I wish sourcemod could hack in there and do it too!
As far as I know the only way would be displaying a fake "item found" message with the yellow/purple color for each client that connects, but that seems stupid .
__________________
napalm00 is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 11-01-2011 , 08:55   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #193

I was on a Lotus TF2 server today and noticed they had purple and yellow advertisements. Does anyone know how they do that? I suppose a custom plugin....
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 11-01-2011 , 08:59   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #194

Quote:
Originally Posted by eraserhead View Post
I was on a Lotus TF2 server today and noticed they had purple and yellow advertisements. Does anyone know how they do that? I suppose a custom plugin....
Was that after an unusual uncrate / item found event?
Unless valve fixed the colors, it's unlikely that you can control them.
__________________
napalm00 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 11-01-2011 , 09:45   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #195

stock SQL_TQueryF(Handle:database, SQLTCallback:callback, any:data, DBPriority:priority=DBPrio_Normal, const String:format[], any:...);

I'm used to just pass _ as data param if i don't need anything, but since your stock doesn't have a default value, i need to set it to 0 myself. Not a big deal, but SQL_TQuery has any:data=0.
__________________
Peace-Maker is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 11-01-2011 , 14:57   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #196

Quote:
Originally Posted by napalm00 View Post
Was that after an unusual uncrate / item found event?
Unless valve fixed the colors, it's unlikely that you can control them.
Nope, it was their own advertisements. They are controlling them in some way. They used it for phrases like 'Become a donator and get....'. The word donator would be purple and the rest in another color.
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 11-01-2011 , 16:04   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #197

Quote:
Originally Posted by eraserhead View Post
Nope, it was their own advertisements. They are controlling them in some way. They used it for phrases like 'Become a donator and get....'. The word donator would be purple and the rest in another color.
Ask Afronanny then
__________________
napalm00 is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 11-01-2011 , 19:19   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #198

I'm not investing time in research for TF2, but if someone comes up with a solution I'm ready to implement.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 11-02-2011 , 09:52   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #199

Quote:
Originally Posted by eraserhead View Post
Nope, it was their own advertisements. They are controlling them in some way. They used it for phrases like 'Become a donator and get....'. The word donator would be purple and the rest in another color.
Pretty sure you can still copy the console message into something like NP++ and it will give you the control characters they're using. For Purple it was a bunch thrown together.

I should also note if you don't find a item with that colour, the text will show up as Black. Unless if this was recently fixed.
KyleS is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-03-2011 , 00:55   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #200

It's \x06 for item colors. It (the client) uses the color that corresponds to the item quality from the last item_found event the client saw (or black if no event was seen yet).
__________________
DarthNinja 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 19:38.


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