我幫你加左檢查恐怖份子
not test
複製內容到剪貼板
代碼:
#include <amxmodx>
new amx_disable_drop;
public plugin_init(){ register_plugin("Disable Drop Weapons", "0.1", "Exolent"); amx_disable_drop = register_cvar("amx_disable_drop", "1", 0, 0.0); return PLUGIN_CONTINUE;}
public client_command(plr){ if( !is_user_alive(plr) ) { return PLUGIN_CONTINUE; } new sCommand[10]; read_argv(0, sCommand, 9); if(get_user_team(plr) == 1) { if( equali(sCommand, "drop", 0) && get_pcvar_num(amx_disable_drop) ) { return PLUGIN_HANDLED; } } return PLUGIN_CONTINUE;}