Raised This Month: $ Target: $400
 0% 

Fast question to DOD'ers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 05-13-2010 , 09:12   Re: Fast question to DOD'ers
Reply With Quote #1

I got a request to make it for dod and since I couldn't find any info about it on the internet, I made my own research and here are the results:

It works in a different way than in cs, and you can only use 1 color in 1 line. You can display msg in 1 of 5 colors:


As you can see on the image, non-default color chat lines have 62 characters length limit.

EDIT:
Name of player who sent the message is a terminator for color and the message must contain it or it will use default color. Team of player sending message defines color. First cell of array storing message must be set to 2
PHP Code:
new msg[128]
format(msg127"%c ...."2, ...) 
I edited default adminchat to add colors to it, and created another plugin (dod_color_chat.sma) that will always display name of admin using say or say_team in an unique color. Check them out.
Attached Files
File Type: sma Get Plugin or Get Source (dod_adminchat.sma - 574 views - 12.5 KB)
File Type: sma Get Plugin or Get Source (dod_color_chat.sma - 608 views - 2.9 KB)
__________________
Impossible is Nothing

Last edited by Sylwester; 05-13-2010 at 11:40.
Sylwester is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2010 , 17:39   Re: Fast question to DOD'ers
Reply With Quote #2

How did you figure all this out?


Here is something interesting using your adminchat version:


Note my full name is "|RIP| Fysiks |mR"
Attached Thumbnails
Click image for larger version

Name:	color_chat_length_test.png
Views:	304
Size:	59.4 KB
ID:	65629  
__________________
fysiks 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 03:44.


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