public show_timer(id){
new MONTHS[12][] = {"1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"}
new WEEK[7][] = {"一","二","三","四","五","六","日"}
new DAY[31][] = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"}
new nextmap[32]
new cumap[32]
new timel = get_timeleft()
new ns_Hour[3], ns_Minutes[3],ns_Month[3],ns_Day[3],ns_Year[5],ns_second[3],ns_week[5]
get_cvar_string("amx_nextmap",nextmap,31)
get_mapname(cumap,31)
get_time("%H", ns_Hour, 2)
get_time("%M", ns_Minutes, 2)
get_time("%m", ns_Month, 2)
get_time("%d", ns_Day, 2)
get_time("%Y", ns_Year, 4)
get_time("%S", ns_second, 2)
get_time("%w", ns_week, 4)
set_hudmessage(0,255,0,0.77,0.71,0, 1.0, 1.0, 0.1, 0.2, 12)
if((str_to_num(ns_week)) ==0){
show_hudmessage(id,"%s年%s%s日星期%s^n香港時間: %s:%s:%s^n以家既地圖: %s^n下一張地圖: %s^n仲有幾多時間: %d:%02d: 伺服器IP:s1.hkgaming.org:27051",ns_Year,MONTHS[str_to_num(ns_Month) -1],DAY[str_to_num(ns_Day) -1],WEEK[str_to_num(ns_week) +6],ns_Hour,ns_Minutes,ns_second,cumap,nextmap,timel / 60, timel % 60,get_)
}else{
show_hudmessage(id,"%s年%s%s日星期%s^n香港時間: %s:%s:%s^n以家既地圖: %s^n下一張地圖: %s^n仲有幾多時間: %d:%02d: 伺服器IP:s1.hkgaming.org:27051",ns_Year,MONTHS[str_to_num(ns_Month) -1],DAY[str_to_num(ns_Day) -1],WEEK[str_to_num(ns_week) -1],ns_Hour,ns_Minutes,ns_second,cumap,nextmap,timel / 60, timel % 60)
}
return PLUGIN_CONTINUE
}
public plugin_init()
{
register_plugin("TimeProjector","0.0","olol")
//register_clcmd("say nowtime","show_timer")
set_task(1.1, "show_timer",0,"",0,"b")
return PLUGIN_CONTINUE
}
問題來了.
我想把
伺服器IP:s1.hkgaming.org:27051 加入.但會變成同一行.請問大大有什麼方法?