- 听众
- 收听
- 积分
- 469
- 主题
- 回帖
- 0
- 精华
注册时间2007-9-17
最后登录1970-1-1
该用户从未签到
|
发表于 2009-2-17 16:22:50
|
显示全部楼层
#include <amxmod>
public show_timer(){
new curmap[32]
get_mapname(curmap,31)
new curt[32]
get_time("%Y/%m/%d, %H:%M:%S",curt,31)
new timeleft = get_timeleft()
set_hudmessage(255,255,255,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13)
show_hudmessage(0,"Time: %s^nCurMap: %s,TimeLeft: %d:%d ",curt,curmap,timeleft / 60, timeleft % 60)
return PLUGIN_CONTINUE
}
public plugin_init(){
register_plugin("TimeProjector","0.1","ST4life")
set_task(1.0, "show_timer",0,"",0,"b")
return PLUGIN_CONTINUE
} |
|