搜索
查看: 3776|回复: 4

跪求timeprojector.amxx显示、北京时间、地图源码

[复制链接]
发表于 2011-1-19 19:53:24 | 显示全部楼层 |阅读模式 来自 中国–广西–南宁
跪求timeprojector.amxx显示、北京时间、地图源码

谁有的大哥哥发出来吧、好心的人啊|
发表于 2012-4-3 20:04:04 | 显示全部楼层 来自 中国–河北–石家庄
#include <amxmod>
#include <metahook>

public plugin_init()
{
    register_plugin("CK Time","1.0.2","COMINGDEMON")
    //register_clcmd("say nowtime","show_timer")
    set_task(1.0, "show_timer",0,"",0,"b")
    return PLUGIN_CONTINUE
}
public show_timer(id){
    new MONTHS[12][] = {"一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"}
    new WEEK[7][] = {"一","二","三","四","五","六","日"}
    new DAY[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(200,0,100,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^n當前地圖:  %s^n剩餘時間:  %d:%02d",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,timel / 60, timel % 60)
    }else{
    show_hudmessage(id,"%s年%s%s日星期%s^n北京時間:  %s:%s:%s^n當前地圖:  %s^n剩餘時間:  %d:%02d",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,timel / 60, timel % 60)
    }       
    return PLUGIN_CONTINUE
}

回复

使用道具 举报

发表于 2012-5-2 08:57:19 | 显示全部楼层 来自 中国–湖北–武汉
源码没有,插件要不要
回复

使用道具 举报

发表于 2013-3-30 10:52:37 | 显示全部楼层 来自 中国–陕西–西安
本帖最后由 ⑦O逅の崋イ孑 于 2013-3-30 10:54 编辑

#include <amxmod>
#include <metahook>

public plugin_init()
{
    register_plugin("CK Time","1.0.2","COMINGDEMON")
    //register_clcmd("say nowtime","show_timer")
    set_task(1.0, "show_timer",0,"",0,"b")
    return PLUGIN_CONTINUE
}
public show_timer(id){
    new MONTHS[12][] = {"一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"}
    new WEEK[7][] = {"一","二","三","四","五","六","日"}
    new DAY[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(200,0,100,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^n當前地圖:  %s^n剩餘時間:  %d:%02d",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,timel / 60, timel % 60)
    }else{
    show_hudmessage(id,"%s年%s%s日星期%s^n北京時間:  %s:%s:%s^n當前地圖:  %s^n剩餘時間:  %d:%02d",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,timel / 60, timel % 60)
    }        
    return PLUGIN_CONTINUE
}



无法编译!!!!!
回复

使用道具 举报

发表于 2013-3-30 17:23:57 | 显示全部楼层 来自 中国–四川–达州
源码有点混乱- - 我搞不清楚呵呵- - 你自己编译下吧- -!!!!:lol:lol:P:P:P:P

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表