PHP Code:
public show_money(client)
{
static name[32];
static msg[128];
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))
{
money = cs_get_user_money(id);
get_user_name(id, name, 31);
format(msg, 127, "^x01(Penge) ^x03%s^x01: %d^n", name, money);
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id);
write_byte(id);
write_string(msg);
message_end();
}
}
}
Ive got a problem, it only show me X as many players there is in the team instead of showing there name and money :S
PHP Code:
(Penge) [fp]zhe legendary nEwb: 800
(Penge) [fp]zhe legendary nEwb: 800