remove weapon
#2

pawn Код:
// At The Bottom
stock RemovePlayerWeapon(playerid, pweaponid)
{
        new plyWeapons[12];
        new plyAmmo[12];
 
        for(new slot = 0; slot != 12; slot++)
        {
                new pwep, pammo;
                GetPlayerWeaponData(playerid, slot, pwep, pammo);
 
                if(pwep != pweaponid)
                {
                        GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]);
                }
        }
 
        ResetPlayerGuns(playerid);
        for(new slot = 0; slot != 12; slot++)
        {
                GivePlayerGun(playerid, plyWeapons[slot], plyAmmo[slot]);
        }
}
Reply


Messages In This Thread
remove weapon - by viosteaua98 - 25.01.2012, 16:17
Re: remove weapon - by Konstantinos - 25.01.2012, 16:28
Re: remove weapon - by viosteaua98 - 25.01.2012, 16:29
Re: remove weapon - by milanosie - 25.01.2012, 17:08
Re: remove weapon - by Konstantinos - 25.01.2012, 17:19
Re: remove weapon - by Oh - 25.01.2012, 17:51

Forum Jump:


Users browsing this thread: 3 Guest(s)