I attatched a modified version of l4d2_WeaponUnlock,now it precaches the cs knife and the m60. It also disables the BOOST for the snipers.
Now heres how to enable the knife...
Open up left4dead2\bin\server.dll and CTRL + F for knife.
Change the first thing you see to 'knifa' and restart the server.
Now it works.
Try typing give knife, or sm_gw @all knife(if you have weapon spawner) and you shall have it.
PROVEN TO WORK.
Since I have pre-ordered the game, I can't test the baseball bat since it unlocks for me,so i decided that you guys should do the job. But I think it's obvious enough for what you guys have to do to unlock the bbb as well. You also have to precache it to avoid crashes btw.
Valve has made the game not recognise the commands give baseball_bat and give knife if server.dll has the EXACT names. So all you have to do is change them to enable them.
Code taken from AtomicStyker and the Author of this plugin.
To tell you the truth, I don't even have a single clue on how to code, lol.
All I did was see all the precache codes and followed excatly XD
Oh.. and one final note, incase you guys were wondering, YES, the knife is added to the NORMAL spawns, and you should be see-ing them around without any plugin spawning them for you.
I used http://forums.alliedmods.net/showthread.php?t=125164
(MELEE IN SAFE ROOM) to help spawn the weapons since I want to use them all the time XD
Heres a video: