How to remove player's weapon?
#2

Where is senderid used?
pawn Код:
public GivePlayerWeapons(senderid, playeridcheck, giveplayerweaponid)
{
    for (new i = 0; i < 13; i++) // START THE LOOP TO CHECK WEAPONS
    {
        new tmpweapid, tmpweapammo;
        GetPlayerWeaponData(playeridcheck, i, tmpweapid, tmpweapammo);
        //FOR SLOT 1 - PRIMARY WEAPON
        if(3 <= i <= 7)
        {
            if(tmpweapammo > 0) {
                GivePlayerWeapon(playeridcheck, tmpweapid, -tmpweapammo); // << to remove a weapon ???
                GivePlayerWeapon(playeridcheck, giveplayerweaponid, 999);
            }
        }
        else
        {
            GivePlayerWeapon(playeridcheck, giveplayerweaponid, 999);
        }
    }
}
Reply


Messages In This Thread
How to remove player's weapon? - by Outcast - 24.01.2011, 20:26
Re: How to remove player's weapon? - by Jefff - 24.01.2011, 21:50

Forum Jump:


Users browsing this thread: 2 Guest(s)