搜索
查看: 3220|回复: 5

[AMXX 带源码] 关于 psrank 哪位兄弟能提供下

[复制链接]
发表于 2009-4-29 01:06:21 | 显示全部楼层 |阅读模式 来自 中国–湖北–武汉
PsychoStats  就是和 tiop15 结合的一个插件

现在最新版是多少了 哪位老鸟提供下

我下的这个太老了

本帖子中包含更多资源

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

×
发表于 2009-6-26 05:40:17 | 显示全部楼层 来自 中国–河南–南阳
貌似我有这个。。。。
回复

使用道具 举报

发表于 2009-6-26 23:10:10 | 显示全部楼层 来自 中国–广东–广州
老东西还拿出来,还要钱!!我晕!!!!!
回复

使用道具 举报

发表于 2009-6-27 14:19:45 | 显示全部楼层 来自 中国–香港
現在已經到了3.1
回复

使用道具 举报

发表于 2012-10-24 22:16:52 | 显示全部楼层 来自 中国–四川–成都
你输入的汉字少于5个,可能被视为灌水行为
PS Rank PsychoStats v3.0.4b (In-Game Stats)
(Old Version(2.0.1+): http://forums.alliedmods.net/showthread.php?p=4100)

/*
* PSRank for http://www.psychostats.com/ - By: DynAstY
* (currently for Counter-Strike and Day of Defeat)
*
* SAY COMMANDS:
*
* - /ranks // shows all stats
*
* - /top10 // shows all stats
*
* - /topclan // shows clan page
*
* - /mystats // shows your player's stats (name must match in game)
*
* - /search [PLAYER NAME] // does a search with string entered as player name
*
*
* Set amx_psrank_url in amxx.cfg to PsychoStats base web URL (trailing forward slash (/) needed)
* Example: amx_psrank_url "http://www.myclanweb.com/stats/"
*
*
*/

If you don't have at least PsychoStats 3.0.4b update now! http://www.psychostats.com/

1. Add AMXX file to AMXX plugins folder and add line in plugins.ini.
2. Set amx_psrank_url in AMXX.CFG.
3. Reload map and enjoy the new commands.



********************************************* *
Plugins Envoled (must be running csstats module also):

stats.amx
stats_logging.amx
miscstats.amx
psrank.amx

In game you need to type in console amx_statscfgmenu and turn off a few settings:

Stats at end of map OFF
Top15 at end of map OFF
Say /stats OFF
Say /top15 OFF
Say /rank OFF
Spec rank info OFF

I have found that Say /statsme ON is still pretty cool for your personal round stats.
********************************************* *
New Features!!
amx_psrank_steamid 0 (default, use Name)
amx_psrank_steamid 1 (use STEAMID)

I have edited some things. Now it works with Psychostats3.0.4b!
  1. /*
  2. *  PSRank for http://www.psychostats.com/ - By: DynAstY
  3. *           (currently for Counter-Strike and Day of Defeat)
  4. *
  5. * SAY COMMANDS:
  6. *
  7. * - /ranks // shows all stats
  8. *
  9. * - /top10 // shows all stats
  10. *
  11. * - /topclan // shows clan page
  12. *
  13. * - /mystats // shows your player's stats (name must match in game)
  14. *
  15. * - /search [PLAYER NAME] // does a search with string entered as player name
  16. *
  17. *
  18. * Set amx_psrank_url in amx.cfg to PsychoStats base web URL (trailing forward slash (/) needed)
  19. * Example: amx_psrank_url "http://www.myclanweb.com/stats/"
  20. *
  21. *
  22. */


  23. #include <amxmodx>

  24. public plugin_init() {
  25.         register_plugin("PSRank", "3.x", "From DynAstY - Edited by Kill4Free")
  26.         register_clcmd("say", "HandleSay", 0, "N/A")
  27.         register_cvar("amx_psrank_url", "http://www.google.com")
  28.         register_cvar("amx_psrank_steamid", "0")
  29. }

  30. public client_putinserver(id) {
  31.         if (!is_user_bot(id)) {
  32.                 new param[1]
  33.                 param[0] = id
  34.                 set_task(120.0, "showinfo", id, param, 1)
  35.         }
  36.         return PLUGIN_CONTINUE
  37. }

  38. public showinfo(param[]) {
  39.         client_print(param[0], print_chat, "[AMXX] Say Commands: /mystats, /ranks, /topclan and /search [playername]")
  40.         return PLUGIN_CONTINUE
  41. }

  42. public HandleSay(id) {
  43.         new sBaseURL[256]
  44.         get_cvar_string("amx_psrank_url",sBaseURL,255)
  45.         new args[256]
  46.         read_argv(1, args, 256)
  47.        
  48.         // SAY /ranks or /top10
  49.         if(containi(args, "/ranks")!=-1 || containi(args, "/top10")!=-1) {
  50.                 show_motd(id, sBaseURL, "")
  51.                 return PLUGIN_HANDLED
  52.         }
  53.        
  54.         // SAY /mystats
  55.         if(containi(args, "/mystats")!=-1) {        
  56.                 new gRankURL[256]
  57.                 new search[33]
  58.                 if (get_cvar_num("amx_psrank_steamid") == 0) {
  59.                  get_user_name(id, search, 32)
  60.                 } else {
  61.                  get_user_authid(id, search, 32)
  62.                 }
  63.                 format(gRankURL, 255,"%sindex.php?submit=1&sort=skill&order=desc&search=%s", sBaseURL, search)
  64.                 show_motd(id, gRankURL, "")
  65.                 return PLUGIN_HANDLED
  66.         }
  67.        
  68. //        if(containi(args, "/skill")!=-1) {
  69.                
  70.                
  71. //                return PLUGIN_HANDLED
  72. //        }
  73.         // SAY /search processing trailing argument
  74.         if(containi(args, "/search")!=-1) {        
  75.                 new t1[32]
  76.                 new t2[32]
  77.                 parse(args,t1,32,t2,32)
  78.                 new gRankURL[256]
  79.                 format(gRankURL, 255,"%sindex.php?submit=1&sort=skill&order=desc&search=%s", sBaseURL, t2)
  80.                 show_motd(id, gRankURL, "")
  81.                 return PLUGIN_HANDLED
  82.         }
  83.        
  84.         //SAY /topclan
  85.         if (containi(args, "/topclan")!=-1) {
  86.                 new gRankURL[256]
  87.                 format(gRankURL, 255,"%sclans.php", sBaseURL)
  88.                 show_motd(id, gRankURL, "")
  89.                 return PLUGIN_HANDLED
  90.             }
  91.        
  92.         return PLUGIN_CONTINUE
  93. }
复制代码

本帖子中包含更多资源

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

×
回复

使用道具 举报

发表于 2015-4-12 21:23:36 | 显示全部楼层 来自 中国–广东–中山
什么东西啊
回复

使用道具 举报

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

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