队伍奖励那一项如何用队伍颜色来控制,现在这样个代码,如果埋包者埋完包离开服务器,奖励显示全是灰色的
现在就是要求队伍奖励是红色,也就是队伍颜色,版主帮忙搞定下,谢谢
/*引爆C4成功奖励*/
public bomb_explode(planter, defuser){
new msg[512],name[32]
get_user_name(planter,name,31)
cs_set_user_money2(planter,cs_get_user_money2(planter)+1000)
for(new id = 1; id <= g_maxplayers; id++)
{
if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
{
cs_set_user_money2(id, cs_get_user_money2(id) + 500)
}
}
format(msg, 511,"^x04[MC] ^x01- ^x03%s ^x01引爆C4成功,奖励金钱^x03 1000",name)
client_color(planter, msg)
format(msg, 511,"^x04[MC] ^x01- ^x03恐怖份子 ^x01引爆C4成功,奖励全体^x03恐怖份子^x01金钱^x03 500")
client_color(planter, msg)
}