RemovePlayerWeapon Help ?
#2

Do you have this somewhere?
pawn Код:
RemovePlayerWeapon(playerid, weaponid)
{
    if(!IsPlayerConnected(playerid) || weaponid < 0 || weaponid > 50)
        return;

    new
        saveweapon[13],
        saveammo[13];

    for(new slot = 0; slot < 13; slot++)
        GetPlayerWeaponData(playerid, slot, saveweapon[slot], saveammo[slot]);

    ResetPlayerWeapons(playerid);

    for(new slot; slot < 13; slot++)
    {
        if(saveweapon[slot] == weaponid || saveammo[slot] == 0)
            continue;

        GivePlayerWeapon(playerid, saveweapon[slot], saveammo[slot]);
    }

    GivePlayerWeapon(playerid, 0, 1);

}
Reply


Messages In This Thread
RemovePlayerWeapon Help ? - by ShawnMiller1337 - 06.08.2010, 22:54
Re: RemovePlayerWeapon Help ? - by Johndaonee - 06.08.2010, 22:56
Re: RemovePlayerWeapon Help ? - by Daren_Jacobson - 06.08.2010, 23:02
Re: RemovePlayerWeapon Help ? - by zSuYaNw - 06.08.2010, 23:03
Re: RemovePlayerWeapon Help ? - by Jefff - 06.08.2010, 23:11
Re: RemovePlayerWeapon Help ? - by ipsBruno - 06.08.2010, 23:13
Re: RemovePlayerWeapon Help ? - by Daren_Jacobson - 06.08.2010, 23:45
Re: RemovePlayerWeapon Help ? - by ipsBruno - 07.08.2010, 00:09
Re: RemovePlayerWeapon Help ? - by Daren_Jacobson - 07.08.2010, 00:36
Re: RemovePlayerWeapon Help ? - by ev0lution - 07.08.2010, 00:41
Re: RemovePlayerWeapon Help ? - by Kyosaur - 07.08.2010, 00:56
Re: RemovePlayerWeapon Help ? - by Daren_Jacobson - 07.08.2010, 01:03

Forum Jump:


Users browsing this thread: 1 Guest(s)