Raised This Month: $ Target: $400
 0% 

[Solved]Different colors in client_print from ML file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 10-25-2009 , 08:21   [Solved]Different colors in client_print from ML file
Reply With Quote #1

Well im trying to write out a text using client_print (maybe have to use a custom one if ive understood it right) and text comes from a ML file but im not sure how to do so for example half the text is green and one word is team colored and the last one yellow (default)
Id appreciate a hint in the right direction

and my test code

Code:
#include <amxmodx> public plugin_init() {     register_plugin("colorchattest", "0.1", "Micke1101")     register_dictionary("colorchattest.txt");     register_logevent("round_start", 2, "1=Round_Start"); } public round_start(){     for ( new i = 1; i <= get_playersnum(); i++ ) {             client_print(id, print_chat, "%L", LANG_PLAYER, "GOOD_LUCK", i);     } }



Quote:
Originally Posted by test.txt
[en]
GOOD_LUCK = "Good luck %s wishes Micke1101"

[sv]
GOOD_LUCK = "Lycka till %s 'o'nskar Micke1101"
will update the code if someone may need it.

Last edited by micke1101; 10-26-2009 at 01:47. Reason: Solved
micke1101 is offline
 



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 17:33.


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