C.G.N
|
分享:
▼
x0
|
[1.6][插件] [ZP插件]回合开始倒数问题
可以把hud改成普通的字显示出来吗?(像玩家打字的模样) 因为hud好像占伺服器>v<
#include <amxmodx> #include <amxmisc> #include <zombieplague> #define PLUGIN "[ZP] Countdown" #define VERSION "1.0" #define AUTHOR "Mr.Apple" new countdown new time_s public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("HLTV", "event_round_start", "a", "1=0", "2=0") } public plugin_precache() { precache_sound( "zpsound/timer10.wav" ) precache_sound( "zpsound/timer09.wav" ) precache_sound( "zpsound/timer08.wav" ) precache_sound( "zpsound/timer07.wav" ) precache_sound( "zpsound/timer06.wav" ) precache_sound( "zpsound/timer05.wav" ) precache_sound( "zpsound/timer04.wav" ) precache_sound( "zpsound/timer03.wav" ) precache_sound( "zpsound/timer02.wav" ) precache_sound( "zpsound/timestart.wav" ) } public event_round_start() { set_task(4.0, "zombie_countdown") time_s = 10 countdown = 9 } public zombie_countdown() { new speak[ 10 ][] = { "zpsound/timestart.wav", "zpsound/timer02.wav", "zpsound/timer03.wav", "zpsound/timer04.wav", "zpsound/timer05.wav", "zpsound/timer06.wav", "zpsound/timer07.wav", "zpsound/timer08.wav", "zpsound/timer09.wav", "zpsound/timer10.wav" } emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM ) countdown-- set_hudmessage(255, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10); show_hudmessage(0, "T病毒正在寻找宿主 %i 将出现母体僵尸", time_s); --time_s; if(time_s >= 1) { set_task(1.0, "zombie_countdown") } }
|
|
x0
[楼 主]
From:香港New Skies Satellites | Posted:2010-08-01 11:18 |
|
|
Abcdzxc555
|
分享:
▲
▼
把 set_hudmessage(255, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)show_hudmessage(0, "T病毒正在寻找宿主 %i 将出现母体僵尸", time_s) 改成 client_print(0, "T病毒正在寻找宿主 %i 将出现母体僵尸", time_s) 就行
|
|
x1
[1 楼]
From:香港网上行 | Posted:2010-08-01 17:56 |
|
|
C.G.N
|
分享:
▲
下面是引用 Abcdzxc555 于 2010-08-01 17:56 发表的 : 把 set_hudmessage(255, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10)show_hudmessage(0, "T病毒正在寻找宿主 %i 将出现母体僵尸", time_s) 改成 client_print(0, "T病毒正在寻找宿主 %i 将出现母体僵尸", time_s) 就行 感谢阿><终于有人解答我的问题
|
|
x0
[2 楼]
From:香港New Skies Satellites | Posted:2010-08-02 11:59 |
|
|
|