|
发表于 2007-12-9 21:40:33
|
显示全部楼层
来自 中国–广东–惠州–惠城区
回复: 已有client_print,怎么添加设置hudmessage
以后问人家时,最好把错误信息也发过来,不要就一句不行,没用,这样谁也不想理你.
[php]
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN_NAME "NTeam Money"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_event("ResetHUD", "CheckMoney", "be")
//在此处添加您的代码...
}
public CheckMoney(id){
new Players[32], Name[50], Num, Team,hudmsg[512]
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 - %d", Name, cs_get_user_money( Players ) );
format(hudmsg,511,"%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(id,hudmsg)
}
}
}
[/php] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|