I'll look into that later. This is currently my best find of blocking buying and only giving knife, tested on several maps:
PHP Code:
public plugin_precache()
{
new iEntity = create_entity( "info_map_parameters" );
DispatchKeyValue( iEntity, "buying", "3" );
DispatchSpawn( iEntity );
iEntity = create_entity( "game_player_equip" );
DispatchKeyValue( iEntity, "weapon_knife", "1" );
DispatchSpawn( iEntity );
RegisterHam( Ham_Spawn, "multi_manager", "fwdMultiManagerSpawn" );
}
public plugin_init()
{
server_cmd( "sv_restart 1" );
}
public fwdMultiManagerSpawn( iEntity )
{
new szTargetName[ 33 ];
entity_get_string( iEntity, EV_SZ_targetname, szTargetName, 32 );
if( equal( szTargetName, "game_playerspawn" ) )
{
remove_entity( iEntity );
}
}
This way I can remove both fun and fakemeta if that means something.