How to remove a players currently holding weapon?
#5

Quote:
Originally Posted by FalconX
Посмотреть сообщение
pawn Код:
stock SetPlayerAmmo(playerid, weaponid, ammo)
{
    new weapon[13][2];
    for(new i=0; i < 13; i++)
    {
        GetPlayerWeaponData(playerid, i, weapon[i][0], weapon[i][1]);
        if(weapon[i][0] == weaponid)
        {
            GivePlayerWeapon(playerid, weaponid, -(weapon[i][1]*2));
            break;
        }
    }
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
}
I think you can remove it by this function:

http://forum.sa-mp.com/showpost.php?...31&postcount=6
Thank you for posting that, thanks to you too!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)