rn
rn
#includern#include rnrn#define PLUGIN "Drop Things"rn#define AUTHOR "Dr.G"rn#define VERSION "1.0"rnrnnew const KNIFES[][] = { "weapon_amerknife", "weapon_spade", "weapon_gerknife" }rnrnpublic plugin_init()rn{rn register_plugin(PLUGIN, VERSION, AUTHOR)rnrn for (new i = 0; i < sizeof KNIFES; i++)rn RegisterHam(Ham_DOD_Item_CanDrop, KNIFES[i], "Enable_Drop")rn}rnrnpublic Enable_Drop(iEnt)rn{rn SetHamReturnInteger(1) // set to Zero if we wanna block the droprn return HAM_SUPERCEDErn}

