心静如水 发表于 2009-5-17 21:35:24

脚本编写讨论区

cityhonghu 发表于 2009-9-19 09:09:08

本帖最后由 cityhonghu 于 2009-9-19 10:25 编辑

#define WINSPREAD 30
第四行你这样改看.....................

或用这个试几天看看........有问题就回电...........
心静如水 发表于 2009-5-16 21:59 http://www.dt-club.net/forum/images/common/back.gif

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

yangxi2008 发表于 2010-1-18 13:04:31

/* AMX Mod X script.
*
* Drop AWP with Team Limit and Win limit v1.5 (CS & CS:CZ)
* By SuicideDog & MattOG
*
* Modded orignal from JustinHoMi
*
*Up-To Version 0.5: SuicideDog & JustinHoMi
*******************************************
*
*
* VERSION: 1.0: MattOG
**********************
*
* Combined all 3 plugins (g3sg1/sg550/awp limit) into one.
* Added seperate commands to control Auto's and Awps. (different limits/rounds)
* 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).
*
* I didn't make it stop bots:
* 1. All bots come with built in weapon restrictions.
* 2. Bots tend not to be AWP whores;)
*
*
* VERSION 1.1: MattOG
*********************
* 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.
*
*
* VERSION: 1.2: MattOG
**********************
*
* Minor bug fix where old style menu's couldn't buy at all. (Thanks to Olie for pointing it out).
*
*
* VERSION: 1.3: SuicideDog/DaSoul
**********************
*
* Added DaSoul's code to allow it to work with PTB correctly
*
* VERSION: 1.4: KWo
**********************
*
* Little bug fixes causing Run Time Errors etc...
* Blocking pickup limited weapon
* Bots are affected by this plugin, too but it doesn't prevent them from buying (they drop limited weapons after buying)
* Optimized usage of cvars by using pcvar functions.
*
**********************
*
* VERSION: 1.5: KWo
*
* Added support for team balancing (if someone has an awp or auto sniper and get switched alive to the opposite team)
*
**********************
*
* VERSION: 1.52: KWo
*
* Added min_players setting (cvar) to allow awps/autos if at least min_players amount in each team is reached
*
**********************
* CVARS:
***********
*
* max_awps <xx> - Maximum Awps Allowed 允许最多有AWP数量
* max_autos <xx> - Maximum Autos Allowed
* winspread_awp <xx> - When This Many Rounds Ahead, No Awps Allowed
* winspread_auto <xx> - When This Many Rounds Ahead, No Autos Allowed
* min_players <xx> - Below this amount of players in team, awp/auto are completly restricted (no matter of max_awps and max_autos)
* autolimit <1/0> - 1 = Restrict Auto, 0 = Don't
* awplimit <1/0> - 1 = Restrict Awp, 0 = Don't
* checkrebuy <1/0> - 1 = Prevent Rebuy Command, 0 = Don't
*
* TIPS:
*   To ALWAYS restrict to X number of awps/autos set winspread_awp/auto to 0 and max_awps/autos to however many awps/autos
*           To ONLY restrict after X number of rounds ahead, set max_awps/autos to 20 and winspread_awp/autos to however many rounds
*
* KNOWN BUG/ISSUES:
************
* Updating the CVARS in game will only take effect after the following round has finished.
* Bots can buy limitted weapon, but they drop it immediatelly after buying. They cannot pickup dropped limited weapons
* (like human players), so it's not a big issue.
*
* TO DO:
********
* 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.
*
*/       

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

Zero0senven 发表于 2010-1-21 09:35:23

这个能用吗

homework 发表于 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

673734294 发表于 2011-8-31 21:47:57

看看 学习 学习

dingleial521 发表于 2011-12-13 23:53:21

收藏咯·····

叶港港 发表于 2012-2-12 10:30:14

http://www.dt-club.net/forum.php?mod=viewthread&tid=56822&extra=page%3D1源码 自己改
页: 1 [2]
查看完整版本: 50点通币求个AWP限制插件(不要awplimit.amxx)