|
发表于 2009-8-27 13:54:43
|
显示全部楼层
来自 中国–四川–遂宁
- /*
- Plugin author by DT.Sakulekingz (KIN)
- */
-
- #include <amxmodx>
- #include <amxmisc>
-
- #define PLUGIN "Team Score"
- #define VERSION "1.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");
- register_event("SendAudio", "score_round", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw");
- register_event("HLTV", "score_round", "a", "1=0", "2=0")
- }
-
- 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, 10.0, 0.08, 2.0, -1);
- show_hudmessage(0,"-=反恐精英:%d| ",ct_score);
-
- set_hudmessage(200, 0, 0, -1.0, 0.0, 0, 0.5, 10.0, 0.08, 2.0, -1);
- show_hudmessage(0," |%d:恐怖份子=-",terrorist_score);
- }
复制代码 |
|