Picking up ammo from the weapon on the ground

Hello! Maybe you now the guy ETeeski. So, i’m making a FPS game using his tutorials. Work pretty good, but i have a problem. ETeeski didn’t said anything about it in his tutorials, but it exists. I learned how to pickup ammo from weapon that is on the ground. So, i have a pistol in my hand, i pass over the gun on the ground and my gun takes ammo from that gun on the ground. Works good. But i can pickup ammo FROM ALL the guns. I can take ammo for my pistol just passing over a RIFLE. It seems not to be good. My idea is to check if the String name of my current gun equals the name of the gun wich is on the ground. And if their names equals to each other, the ammo would be taken. And i dont know how to do this((
Here is the video. FPS1.29 Picking Up Ammo. Unity3D FPS Game Design Tutorial. - YouTube
And here you can find a code. http://forum.unity3d.com/threads/124970-ETeeskiTutorials-Scripts-up-to-FPS1-29
Search at the bottom of “PlayerMovementScript”.
PLEASE HELP!Sorry for my english.

At first, guys, i’m not thinking that i can make my game in 2 days. NO. I understood my problem and tried to set the tags for each of gunType. I set the tag, but i din’t exactly know how to use it. I checked the gun to have certain tag. I didn’t worked, i did something wrong(. Here is my code of picking up gun when it passed:

function OnCollisionExit ()
{
grounded = false;
}

function OnTriggerStay (hitTrigger : Collider)
{
var current : SMGGunScript = null;
if (currentGun)
current = currentGun.GetComponent(SMGGunScript);
var ammo : AmmoPickupScript = null;
var gun : SMGGunScript = null;

if (hitTrigger.tag == "AmmoPickup" && waitToPickupAmmo <= 0)
{
    ammo = hitTrigger.gameObject.GetComponent(AmmoPickupScript);
    if (current.currentExtraAmmo < current.maxExtraAmmo)
    {
        if (ammo.fromGun)
        {	
            gun = ammo.gun.GetComponent(SMGGunScript);
            if (gun.currentExtraAmmo > 0 && gun.ammoType == current.ammoType && ammo.gun != currentGun)
            {
                if (gun.currentExtraAmmo >= current.maxExtraAmmo - current.currentExtraAmmo)
                {
                    gun.currentExtraAmmo -= current.maxExtraAmmo - current.currentExtraAmmo;
                    current.currentExtraAmmo = current.maxExtraAmmo;
                }
                if (gun.currentExtraAmmo < current.maxExtraAmmo - current.currentExtraAmmo)
                {
                    current.currentExtraAmmo += gun.currentExtraAmmo;
                    gun.currentExtraAmmo = 0;
                }
                if (ammo.pickupSound)
                    ammo.gameObject.GetComponent(AudioSource).Play();
            }
            
        }
        if (!ammo.fromGun)
        {
            if (current.ammoType == ammo.ammoType || ammo.ammoType == -1)
            {
                if (ammo.ammoAmount > 0 && !ammo.unlimitedAmmo)
                {
                    if (ammo.ammoAmount >= current.maxExtraAmmo - current.currentExtraAmmo)
                    {
                        ammo.ammoAmount -= current.maxExtraAmmo - current.currentExtraAmmo;
                        current.currentExtraAmmo = current.maxExtraAmmo;
                    }
                    if (ammo.ammoAmount < current.maxExtraAmmo - current.currentExtraAmmo)
                    {
                        current.currentExtraAmmo += gun.currentExtraAmmo;
                        ammo.ammoAmount = 0;
                    }
                    if (ammo.pickupSound)
                        ammo.gameObject.GetComponent(AudioSource).Play();
                }
                if (ammo.unlimitedAmmo)
                {
                    current.currentExtraAmmo = current.maxExtraAmmo;
                    if (ammo.pickupSound)
                        ammo.gameObject.GetComponent(AudioSource).Play();
                }
            }
        }
    }
}

}

My problem is i can’t check the gun on the ground. “currentGun” is my gun i’m holding. “gun” as i can see, is a weapon on the ground. Both they are GameObject. I tried to use this:
if(currentGun == gun)
{
}

And i tried to use their names:
if(currentGun.name == gun.name)
{
}
I hope you will understand me.