changing
Code:
public plugin_init() {
register_plugin("Awp Map Control","0.1.5","f117bomb")
register_cvar("amx_awpmap_noshoot","5.0")
new mapname[33]
get_mapname(mapname,32)
awpmap = equali(mapname,"awp_map") ? true : false
if(awpmap) {
register_event("RoundTime", "Round_Time", "bc")
register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")
}
return PLUGIN_CONTINUE
}
to
Code:
public plugin_init() {
register_plugin("Awp Map Control","0.1.5","f117bomb")
register_cvar("amx_awpmap_noshoot","5.0")
new mapname[33]
get_mapname(mapname,32)
if(equal(mapname,"awp_",3)) {
register_event("RoundTime", "Round_Time", "bc")
register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")
}
else if(equal(mapname,"awm_",3)) {
register_event("RoundTime", "Round_Time", "bc")
register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")
}
return PLUGIN_CONTINUE
}
should make it work for any map beginning with awp_ or awm_ (yes there are some) I
THINK that should work
it also removes the need for the bool variable awpmap up at the top of the plugin I believe.
this line
__________________