|
发表于 2007-12-8 19:58:04
|
显示全部楼层
来自 中国–广东–惠州
回复: 已有client_print,怎么添加设置hudmessage
改这样试下,
[php]
public CheckMoney(id){
new Players[32], Name[50], Num, Team,hudmsg[128]
Team = get_user_team( id );
get_players( Players, Num, "a" )
for ( new i = 0; i < Num; i++ ){
if( get_user_team( Players) == Team ){
get_user_name( Players, Name, 49 );
client_print( id, print_chat, "%s - %i", Name, cs_get_user_money( Players ) );
format(hudmsg,127,"%s 队友%s共有金钱%d^n",hudmsg,Name,cs_get_user_money(Players))
}
}
for(new j=0;j<Num;j++)
{
if( get_user_team( Players[j]) == Team )
{
set_hudmessage(42, 127, 255, 0.01, 0.3, 2, 3.0, 4.0, 0.1, 0.2, 9)
show_hudmessage(Players[j],hudmsg)
}
}
}
[/php] |
|