
/* AMX Mod script. 
* 
* (c) Copyright 2002, SuicideDog 
* This file is provided as is (no warranties). 
* Simple AWP restriction for CS (this works for 1.6 too) 

 Use cvar setting sv_nowp 1 to enable and sv_noawp 0 to disable plugin
*/ 

#include <amxmodx> 

public check_awp(id) { 
	if (get_cvar_num("sv_noawp")!=1) 
	return PLUGIN_CONTINUE 
	
	new llama = read_data(0)    
	client_print(llama,print_center,"AWPs are not allowed.") 
	engclient_cmd(llama, "drop","weapon_awp")
        client_cmd(llama,"drop weapon_awp") 
	return PLUGIN_CONTINUE 
} 

public plugin_init(){ 
	register_plugin("Drop Awp","0.2","SuicideDog") 
	register_event("WeapPickup","check_awp","b","1=18") 
	register_cvar("sv_noawp","1") 
	return PLUGIN_CONTINUE 
} 



