|
楼主 |
发表于 2008-3-12 22:06:20
|
显示全部楼层
来自 中国–河南–郑州
回复: 那位大哥帮忙修改下插件!
Post by jim_yang
在这个地方加上下面那两行
public cmdSay(id) {
if(!(get_user_flags(id) & ADMIN_LEVEL_A))
return PLUGIN_CONTINUE
谢谢了
public cmdSay(id) {
new said[32]
read_argv(1,said,31)
if(said[0] != '/')
return PLUGIN_CONTINUE;
for(new i = 0 ; i < MAXWEAPON ; i++) {
if(equali(said[1],WEAPON[WMOD_SayCmd])) {
if(get_cvar_num(WEAPON[WMOD_Disabled]) != 0){
client_print(id,print_chat, "[Weapons Mod 2.0] This weapon is disabled on this server.")
return PLUGIN_HANDLED
}
if (got_weapon[id] == get_cvar_num("amx_weapon_changes")){
client_print(id,print_chat, "[Weapons Mod 2.0] You've used up your gun changes, you must wait until respawn to change guns again.")
return PLUGIN_HANDLED
}
cmdWeapon(WEAPON[WMOD_Weapon],Weapon_Name[id])
client_cmd(id, "drop")
set_task(0.3,"cmdGiveWeapon", id)
break;
}
}
return PLUGIN_HANDLED
}
能说具体加在那个地方吗? 还是替换掉这些 |
|