Quote:
Originally Posted by rex
let me know if this is a really dumb question.
is there anyway of restricting a weapon for a map everytime it loads?
say i want to restrict the AWP for de_dust. i restrict it but next time the map loads it not restriced anymore, but i still want it to be.
thanks for any help.
|
From what I have tried the best thing to do is run Amx and this script.
/* 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)
*/
#include <amxmod>
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 banned. Find a real gun!")
client_cmd(llama,"weapon_awp;wait;wait;wait;drop")
return PLUGIN_CONTINUE
}
public plugin_init(){
register_plugin("Drop Awp","0.1","SuicideDog")
register_event("WeapPickup","check_awp","b","1=18" )
register_cvar("sv_noawp","1")
return PLUGIN_CONTINUE
}
You can then simply set / unset the cvar sv_noawp
If you are using rcon it would be:
so sv_noawp 1
to limit it and
rcon sv_noawp 0
to allow it again.
This works really well and this script can easily be changed to support other weapons.