Thank you, wonder why that one didnt come up when i searched for color anyways it dosent seem to have the ML coloring ability im looking for
edited with the code i was looking for
Code:
#include <amxmodx>
new saytext_msgid
public plugin_init() {
register_plugin("colorchattest", "0.1", "Micke1101")
register_dictionary("colorchattest.txt");
saytext_msgid = get_user_msgid("SayText")
register_logevent("round_start", 2, "1=Round_Start");
}
public round_start(){
for ( new i = 1; i <= get_playersnum(); i++ ) {
new temp[128]
formatex( temp, 127, "%L", LANG_PLAYER, "GOOD_LUCK", i);
replace_all(temp,127,"!n","^x01")
replace_all(temp,127,"!t","^x03")
replace_all(temp,127,"!g","^x04")
message_begin(MSG_ONE,saytext_msgid,{0,0,0},i)
write_byte(i)
write_string(temp)
message_end()
}
}
Quote:
|
Originally Posted by colorchattest.txt
[en]
GOOD_LUCK = "!gGood luck !t%s !nwishes Micke1101"
[sv]
GOOD_LUCK = "!gLycka till !t%s !n'o'nskar Micke1101"
|
The output will be Good luck (in green)
the players id in team color
and wishes Micke1101 in normal yellow