|
发表于 2008-4-24 20:49:47
|
显示全部楼层
|阅读模式
来自 中国–浙江–衢州–开化县
请知道的朋友指点下。看看哪个代码错了!请进行修改。
#include <amxmodx>
#include <engine>
new g_msgBarTime, bool:showtime[33] = false
public plugin_init()
{
register_plugin("time", "1.0", "yyy")
register_cvar("amx_timeleft1_bar", "1")
g_msgBarTime = get_user_msgid("BarTime")
}
public client_PreThink(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE
if(!get_cvar_float("mp_timelimit"))
return PLUGIN_CONTINUE
new timeleft = (get_timeleft() + 1)
new nextmap[32]
get_cvar_string("amx_nextmap",nextmap,31)
if(timeleft <= get_cvar_num("amx_timeleft1_bar"))
{
engclient_print(id, print_center, "------------^http://www.wuhan.com^n------------")
}
return PLUGIN_CONTINUE
} |
|