找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 552|回复: 4

[已解决] 继续求个插件``

[复制链接]

该用户从未签到

发表于 2011-2-18 12:12:17 | 显示全部楼层 |阅读模式
玉林服务器的右上角有 地图名字显示的插件,,,

谢谢了```

该用户从未签到

发表于 2011-2-18 12:30:35 | 显示全部楼层
楼下提供把
我不清楚

该用户从未签到

发表于 2011-2-18 13:51:04 | 显示全部楼层
我也提供不了。。继续楼下提供..

该用户从未签到

 楼主| 发表于 2011-2-21 00:12:25 | 显示全部楼层
没有人能提供么?```

该用户从未签到

发表于 2011-2-25 12:30:26 | 显示全部楼层
  1. /*
  2. * AMX X Mod script.
  3. *
  4. * (c) Copyright 2004, olol
  5. *
  6. * This file is provided as is (no warranties).
  7. */

  8. #include <amxmodx>

  9. /*
  10. * TimeProjector displays the time and the next map on the top right corner of the client
  11. * display as a hudmessage.
  12. *
  13. * History:
  14. *
  15. * v0.1: -
  16. */


  17. public show_timer(id){
  18. new MONTHS[12][] = {"一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"}
  19. new WEEK[7][] = {"一","二","三","四","五","六","日"}
  20. new DAY[31][] = {"一","二","三","四","五","六","七","八","九","十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十","廿一","廿二","廿三","廿四","廿五","廿六","廿七","廿八","廿九","三十","三十一"}
  21. new nextmap[32]
  22. new cumap[32]
  23. new timel = get_timeleft()
  24. new ns_Hour[3], ns_Minutes[3],ns_Month[3],ns_Day[3],ns_Year[5],ns_second[3],ns_week[5]
  25. get_cvar_string("amx_nextmap",nextmap,31)
  26. get_mapname(cumap,31)
  27. get_time("%H", ns_Hour, 2)
  28. get_time("%M", ns_Minutes, 2)
  29. get_time("%m", ns_Month, 2)
  30. get_time("%d", ns_Day, 2)
  31. get_time("%Y", ns_Year, 4)
  32. get_time("%S", ns_second, 2)
  33. get_time("%w", ns_week, 4)
  34. set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255),0.75,0.18,0, 1.0, 1.0, 0.1, 0.2, 12)
  35. if((str_to_num(ns_week)) ==0){
  36. show_hudmessage(id,"%s年%s%s日星期%s^n北京時間: %s:%s:%s^n當前地圖: %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) +6],ns_Hour,ns_Minutes,ns_second,cumap,nextmap,timel / 60, timel % 60)
  37. }else{
  38. show_hudmessage(id,"%s年%s%s日星期%s^n北京時間: %s:%s:%s^n當前地圖: %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,nextmap,timel / 60, timel % 60)
  39. }
  40. return PLUGIN_CONTINUE
  41. }

  42. public plugin_init()
  43. {
  44. register_plugin("TimeProjector","0.1","olol")
  45. //register_clcmd("say nowtime","show_timer")
  46. set_task(1.0, "show_timer",0,"",0,"b")
  47. return PLUGIN_CONTINUE
  48. }
复制代码

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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