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.