Show teammate's money with color?
Hey, ive got a "show teammate's money" script working with client_print but i was wondering how to add some color in it too.
The script:
Ive searched a bit and i found this:
Thats just not exactly what i need (i think) because its not something the player have said in say or say_team.
I want to use team color in the name only, I hope u can help me with this.
The script:
PHP Code:
public show_money(client)
{
static name[32];
new money, id;
for (id = 1; id <= g_max_players; id++)
{
if (is_user_connected(id) && cs_get_user_team(id) == cs_get_user_team(client))
&n bsp; {
money = cs_get_user_money(id);
get_user_name(id, name, 31);
client_print(client, print_chat, "(Penge) %-22.22s: %d^n", name, money);
}
}
}
PHP Code:
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id)
write_byte(id)
write_string("^x03Team colored text ^x01Normal color")
message_end()
I want to use team color in the name only, I hope u can help me with this.
Orignal From: Show teammate's money with color?
Post a Comment