尘埃是非 发表于 2006-3-15 16:28:22

【推荐】北京时间显示右上角插件修改为中央电视台报时插件

不知道怎么改,想改为像央视报时一样.每隔半个小时报1次.年\月\日\时\分\秒.也是运行30秒后消失.30秒后才不显示.已简单的去掉了"当前地图""剩余时间""下幅地图"谁来帮个忙的:confused:
/*
* AMX X Mod script.
*
* (c) Copyright 2004, olol
*
* This file is provided as is (no warranties).
*/
#include <amxmodx>

/*
* TimeProjector displays the time and the next map on the top right corner of the client
* display as a hudmessage.
*
* History:
*
* v0.1: -
*/


public show_timer(id){
new MONTHS[] = {"一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"}
new WEEK[] = {"一","二","三","四","五","六","日"}
new DAY[] = {"一","二","三","四","五","六","七","八","九","十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十","廿一","廿二","廿三","廿四","廿五","廿六","廿七","廿八","廿九","三十","三十一"}
new nextmap
new cumap
new timel = get_timeleft()
new ns_Hour, ns_Minutes,ns_Month,ns_Day,ns_Year,ns_second,ns_week
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.75,0.18,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",ns_Year,MONTHS,DAY,WEEK,ns_Hour,ns_Minutes,ns_second)
}else{
show_hudmessage(id,"%s年%s%s日星期%s^n北京时间 %s:%s:%s",ns_Year,MONTHS,DAY,WEEK,ns_Hour,ns_Minutes,ns_second)
}
return PLUGIN_CONTINUE
}

public plugin_init()
{
register_plugin("TimeProjector","0.1","olol")
//register_clcmd("say nowtime","show_timer")
set_task(1.0, "show_timer",0,"",0,"b")
return PLUGIN_CONTINUE
}

knhgcn 发表于 2006-3-15 21:22:01

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

挺会取名字的,推荐,我还以为下载~~:embarrass

尘埃是非 发表于 2006-3-15 23:22:55

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

哦。那就来顶吧~~~:gogo: :gogo: :gogo:

文武英杰 发表于 2006-3-16 09:27:41

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

加个分钟的判断应该就可以了,谁有空改一下:cool: ~~~~~

ali_zkz 发表于 2006-3-16 11:15:25

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

ding顶:boss: :byebye: :byebye:   啊啊啊啊啊啊啊啊

AE86 发表于 2006-3-16 15:47:05

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

怎么没什么人顶 :rolleyes: 可惜了

haijunxuluwei 发表于 2006-3-17 08:15:31

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

顶了:byebye: :byebye: :byebye:

bo_zai 发表于 2006-3-28 14:24:24

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

帮顶! :sweat:

PIG 发表于 2006-8-16 16:58:26

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

帮顶!!!!!:sweat:

BTG 发表于 2006-8-17 07:33:25

回复: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件

ding ~~~!!
页: [1] 2
查看完整版本: 【推荐】北京时间显示右上角插件修改为中央电视台报时插件