Code:
#include <amxmodx>
#include <engine>
#define PLUGIN_VERSION "1.0"
new const g_szEntities[][] = { "player_weaponstrip", "game_player_equip", "armoury_entity" }
public plugin_init()
{
register_plugin("No Weapons On Ground", PLUGIN_VERSION, "OciXCrom")
register_cvar("@NoWeaponsOnGround", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)
for(new i, iEnt = -1; i < sizeof(g_szEntities); i++)
{
iEnt = -1
while((iEnt = find_ent_by_class(iEnt, g_szEntities[i])))
{
if(is_valid_ent(iEnt))
remove_entity(iEnt)
}
}
}
__________________