有没有限制买几把awp的??
就是ct t 每局只能买几把awp的找了好半天。。。 搜索awplimit.amxx就是 才看着这个帖子里就有
超级AMXX1.8.1版的编译器[带:1000个SMA原文件] /* AMX Mod script.
*
* AWP Limit 0.21
*by JustinHoMi
*
* Allows no more than 2 awps per team
*
*/
#include <amxmod>
#define MAXAWPS 2
new plist = { 0, ... } // 0 = no awp; 1 = carrying awp
new awp_count // 1 = T; 2 = CT
/* handles restricting the menu */
public menu_awp(id,key) {
new team = get_user_team(id)
if(awp_count >= MAXAWPS)
{
engclient_cmd(id,"menuselect","10")
client_print(id,print_center,"Too many people on your team have awp")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
/* handles when a player drops their weapon */
public handle_drop(id) {
if (plist == 1)
{
new tmp1,tmp2
new curweapon = get_user_weapon(id,tmp1,tmp2)
if (curweapon == 18)
{
plist = 0
new team = get_user_team(id)
awp_count--
}
}
return PLUGIN_CONTINUE
}
/* handles when a player picks up an awp */
public handle_pickup(id) {
new team = get_user_team(id)
if (awp_count >= MAXAWPS)
{
new id_s
numtostr(id,id_s,3)
set_task(0.1,"delayed_drop",0,id_s,3)
}
else
{
plist = 1
awp_count++
}
}
/* delays the drop slightly to give the server time to register that they picked up an awp */
public delayed_drop(id_s[])
{
new idx = strtonum(id_s)
client_print(idx,print_center,"Too many people on your team have awp")
engclient_cmd(idx,"drop")
}
/* removes awp when player dies */
public handle_death() {
new idx = read_data(2)
if(plist == 1)
{
new team = get_user_team(idx)
awp_count--
plist = 0
}
}
/* clear vars when player connects */
public client_connect(id) {
plist = 0 // just to make sure
}
/* clear vars when player disconnects */
public client_disconnect(id) {
if (plist == 1)
{
new team = get_user_team(id)
awp_count--
}
plist = 0
}
public plugin_init(){
register_plugin("AWP Limit","0.21","JustinHoMi")
register_menucmd(-31,1<<5,"menu_awp")
register_clcmd("drop","handle_drop")
register_event("WeapPickup","handle_pickup","b","1=18")
register_event("DeathMsg","handle_death","a")
return PLUGIN_CONTINUE
}
这是那个源码 找了半天 在哪修改数量。。。 这个 不需要在 amxx。cfg在设置什么了吗??? awplimit.amxx这个插件是怎么计算的???
ct t 各2把吗??
加载了不能用。。。 http://gdzsc.vicp.net/viewthread.php?tid=103&extra=page%3D1
我设置好了,每队只有2AWP 顶 这么好i
页:
[1]