No I wrote this myself, but it's a common way of doing it.
Doesn't matter anymore anyways, cause now it's just SetPlayerArmedWeapon(playerid, 0);
Ever thought that maybe they copy/pasted it off me?
Actually, you may of written the code yourself (which I doubt), but the text you used on your thread (to explain it, etc) was copied from another location. It's either VERY similar, or dead on.