|
发表于 2009-8-12 17:25:04
|
显示全部楼层
来自 中国–广东–惠州–惠城区
自己试吧。
- #include <amxmodx>
- #include <amxmisc>
- #define PLUGIN_NAME "New Plug-In"
- #define PLUGIN_VERSION "1.0"
- #define PLUGIN_AUTHOR "zwfgdlc"
- new hud_sync;
- new TEscore;
- new CTscore;
- public plugin_init()
- {
- register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
- hud_sync = CreateHudSyncObj();
- register_event("TeamScore", "EVENT_TeamScore", "a");
- register_logevent("Round_Start", 2, "1=Round_Start");
- }
- public EVENT_TeamScore()
- {
- new team[10];
- read_data(1, team, 9);
-
- if(team[0] == 'T')
- TEscore=read_data(2);
- else
- CTscore = read_data(2);
- }
- public Round_Start()
- {
- set_hudmessage(255, 170, 0, -1.0, 0.3, 0, 6.0, 12.0)
- ShowSyncHudMsg(0, hud_sync, "当前双方比分是^nTE=%d CT=%d^n%s暂时领先", TEscore, CTscore,CTscore > TEscore ? "CT" : "TE");
-
- }
复制代码 |
|