There was a sample code of removing the buyzone entities from a map. I'll try to find it.
Edit: Here it is..
Code:
// Avalanche wrote this
#include <amxmodx>
#include <engine>
public plugin_precache() {
disable_buyzone(); // disable buying
// do it in precache because it is done earlier than plugin_init, and it MIGHT matter
}
public disable_buyzone() {
// find that info entity
new ent = find_ent_by_class(-1,"info_map_parameters");
// if we couldn't find one, make our own
if(!ent) {
ent = create_entity("info_map_parameters");
}
// disable buying for both teams
DispatchKeyValue(ent,"buying","3");
DispatchSpawn(ent);
}
__________________