Reset Weapons.
#4

Quote:
Originally Posted by Mionee
Посмотреть сообщение
Usage:
pawn Код:
RemovePlayerWeapon(playerid, weaponid);
Code:
pawn Код:
stock RemovePlayerWeapon(playerid, weaponid)
{
    new plyWeapons[12], plyAmmo[12];

    for(new slot = 0; slot != 12; slot++)
    {
        new wep, ammo;

        GetPlayerWeaponData(playerid, slot, wep, ammo);
       
        if(wep != weaponid)
        {
            GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]);
        }
    }
   
    ResetPlayerWeapons(playerid);

    for(new slot = 0; slot != 12; slot++)
    {
        GivePlayerWeapon(playerid, plyWeapons[slot], plyAmmo[slot]);
    }
}
Hey bro thanks but how will it recognaiz that the weapons are duty weapons ? I need to defined them and then use that function.
I also sell in the weapon store all the weapons that shows on the duty.
Reply


Messages In This Thread
Reset Weapons. - by kubeba59 - 16.05.2014, 23:45
Re: Reset Weapons. - by Dignity - 16.05.2014, 23:52
Re: Reset Weapons. - by [..MonTaNa..] - 16.05.2014, 23:52
Re: Reset Weapons. - by kubeba59 - 17.05.2014, 09:31
Re: Reset Weapons. - by kubeba59 - 23.05.2014, 12:40
Re : Reset Weapons. - by S4t3K - 23.05.2014, 12:55
Re: Re : Reset Weapons. - by kubeba59 - 23.05.2014, 15:59
Re : Reset Weapons. - by S4t3K - 23.05.2014, 16:01
Re: Re : Reset Weapons. - by kubeba59 - 23.05.2014, 16:30
Re : Reset Weapons. - by S4t3K - 23.05.2014, 16:32

Forum Jump:


Users browsing this thread: 3 Guest(s)