A simple .inc file to patch memory efficiently.
Include memorypatch.inc in your plugin to use it.
Read mempatch.sp & mem.txt to understand how to use it. The example plugin patches the function CTFPlayer::PickupWeaponFromOther so that the game Team Fortress 2 generates dropped weapons inside spawn rooms.