|
发表于 2010-3-26 00:06:07
|
显示全部楼层
来自 中国–浙江–杭州
送上原码
-----------------------------
/*
Plugin author by DT.Sakulekingz (KIN)
*/
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Team Score"
#define VERSION "2.0"
#define AUTHOR "DT.Sakulekingz(KIN)"
#define LOADING "^n^t%s v%s, Copyright (C) 2009 by %s^n"
new ct_score, terrorist_score;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
server_print(LOADING,PLUGIN,VERSION,AUTHOR);
register_event("TeamScore", "team_score", "a");
set_task(1.0,"score_round",_,_,_,"b")
}
public team_score()
{
new team[32];
read_data(1,team,31);
if (equal(team,"CT"))
{
ct_score = read_data(2);
}
else if (equal(team,"TERRORIST"))
{
terrorist_score = read_data(2);
}
}
public score_round()
{
set_hudmessage(0, 70, 200, -1.0, 0.0, 0, 0.5, 2.0, 0.08, 2.0, 145);
show_hudmessage(0,"-=顽强人类:%d| ", ct_score);
set_hudmessage(200, 0, 0, -1.0, 0.0, 0, 0.5, 2.0, 0.08, 2.0, 146);
show_hudmessage(0," |%d:不死幽灵=-", terrorist_score);
} |
|