搜索
楼主: 银闪闪

50点通币求个AWP限制插件(不要awplimit.amxx)

[复制链接]
发表于 2009-5-17 21:35:24 | 显示全部楼层 来自 中国–广西–百色田阳县
脚本编写讨论区
回复

使用道具 举报

发表于 2009-9-19 09:09:08 | 显示全部楼层 来自 日本–东京都
本帖最后由 cityhonghu 于 2009-9-19 10:25 编辑
#define WINSPREAD 30
第四行你这样改看.....................

或用这个试几天看看........有问题就回电...........
心静如水 发表于 2009-5-16 21:59


谢谢分享。
能告诉一下,如何更改限制数量吗?好像只能为2 ?
如果可以的话,能提供一下代码吗?
回复

使用道具 举报

发表于 2010-1-18 13:04:31 | 显示全部楼层 来自 中国–广东–东莞
  1. /* AMX Mod X script.
  2. *
  3. * Drop AWP with Team Limit and Win limit v1.5 (CS & CS:CZ)
  4. * By SuicideDog & MattOG
  5. *
  6. * Modded orignal from JustinHoMi
  7. *
  8. *Up-To Version 0.5: SuicideDog & JustinHoMi
  9. *******************************************
  10. *
  11. *
  12. * VERSION: 1.0: MattOG
  13. **********************
  14. *
  15. * Combined all 3 plugins (g3sg1/sg550/awp limit) into one.
  16. * Added seperate commands to control Auto's and Awps. (different limits/rounds)
  17. * Fixed bug with old-style menu's still being able to buy guns. (Credit to bAnTAi, I used his Y.A.S.C. plugin to help with the code).
  18. *
  19. * I didn't make it stop bots:
  20. * 1. All bots come with built in weapon restrictions.
  21. * 2. Bots tend not to be AWP whores  ;)
  22. *
  23. *
  24. * VERSION 1.1: MattOG
  25. *********************
  26. * Changed Maxawps/autos and winspreads to cvars to enable on-the-fly changing, and to allow changes to be set in server/amxx/map configs.
  27. *
  28. *
  29. * VERSION: 1.2: MattOG
  30. **********************
  31. *
  32. * Minor bug fix where old style menu's couldn't buy at all. (Thanks to Olie for pointing it out).
  33. *
  34. *
  35. * VERSION: 1.3: SuicideDog/DaSoul
  36. **********************
  37. *
  38. * Added DaSoul's code to allow it to work with PTB correctly
  39. *
  40. * VERSION: 1.4: KWo
  41. **********************
  42. *
  43. * Little bug fixes causing Run Time Errors etc...
  44. * Blocking pickup limited weapon
  45. * Bots are affected by this plugin, too but it doesn't prevent them from buying (they drop limited weapons after buying)
  46. * Optimized usage of cvars by using pcvar functions.
  47. *
  48. **********************
  49. *
  50. * VERSION: 1.5: KWo
  51. *
  52. * Added support for team balancing (if someone has an awp or auto sniper and get switched alive to the opposite team)
  53. *
  54. **********************
  55. *
  56. * VERSION: 1.52: KWo
  57. *
  58. * Added min_players setting (cvar) to allow awps/autos if at least min_players amount in each team is reached
  59. *
  60. **********************
  61. * CVARS:
  62. ***********
  63. *
  64. * max_awps <xx> - Maximum Awps Allowed 允许最多有AWP数量
  65. * max_autos <xx> - Maximum Autos Allowed
  66. * winspread_awp <xx> - When This Many Rounds Ahead, No Awps Allowed
  67. * winspread_auto <xx> - When This Many Rounds Ahead, No Autos Allowed
  68. * min_players <xx> - Below this amount of players in team, awp/auto are completly restricted (no matter of max_awps and max_autos)
  69. * autolimit <1/0> - 1 = Restrict Auto, 0 = Don't
  70. * awplimit <1/0> - 1 = Restrict Awp, 0 = Don't
  71. * checkrebuy <1/0> - 1 = Prevent Rebuy Command, 0 = Don't
  72. *
  73. * TIPS:
  74. *     To ALWAYS restrict to X number of awps/autos set winspread_awp/auto to 0 and max_awps/autos to however many awps/autos
  75. *           To ONLY restrict after X number of rounds ahead, set max_awps/autos to 20 and winspread_awp/autos to however many rounds
  76. *
  77. * KNOWN BUG/ISSUES:
  78. ************
  79. * Updating the CVARS in game will only take effect after the following round has finished.
  80. * Bots can buy limitted weapon, but they drop it immediatelly after buying. They cannot pickup dropped limited weapons
  81. * (like human players), so it's not a big issue.
  82. *
  83. * TO DO:
  84. ********
  85. * Dunno, you tell me  ;)  Possibly will look at that following round thing, though it isn't too much hassle so I may not bother. You Decide.
  86. *
  87. */       
复制代码

自己拿去吧 ,又不是什麼值錢的還不給源碼 無語

本帖子中包含更多资源

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

×
回复

使用道具 举报

发表于 2010-1-21 09:35:23 | 显示全部楼层 来自 中国–广东–深圳–福田区
这个能用吗
回复

使用道具 举报

发表于 2011-8-30 22:36:47 | 显示全部楼层 来自 中国–四川–成都
源码,原作者:http://forums.alliedmods.net/showthread.php?p=8002

参数:
mp_sniper_control // 1 = on, 0 = off
sc_max_snipers_t // 限制T队伍的AWP数量
sc_max_snipers_ct // 限制CT队伍的AWP数量number of sniper rifles for the CT team

;如果开启了地图屏蔽参数 mp_sniper_control 1/0 开启关闭
;就还要加载这个插件默认的配置文件sc_disabled_maps.cfg
;放到configs 里面 哪副地图不用AWP限制就写上地图名字



更多功能版:
http://forums.alliedmods.net/showthread.php?p=444328

本帖子中包含更多资源

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

×
回复

使用道具 举报

发表于 2011-8-31 21:47:57 | 显示全部楼层 来自 中国–湖南–长沙
看看 学习 学习
回复

使用道具 举报

发表于 2011-12-13 23:53:21 | 显示全部楼层 来自 中国–安徽–淮北
收藏咯·····
回复

使用道具 举报

发表于 2012-2-12 10:30:14 | 显示全部楼层 来自 中国–上海–上海
回复

使用道具 举报

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

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