[HELP]Set weapon to 0
#7

Quote:
Originally Posted by whitedragon
Quote:
Originally Posted by MadeMan
You can use this function

pawn Код:
stock RemovePlayerWeapon(playerid, weaponid)
{
    new plyWeapons[12];
    new plyAmmo[12];
    for(new slot = 0; slot != 12; slot++)
    {
        GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]);
    }
    ResetPlayerWeapons(playerid);
    for(new slot = 0; slot != 12; slot++)
    {
        if(plyAmmo[slot] != 0 && plyWeapons[slot] != weaponid)
        {
            GivePlayerWeapon(playerid, plyWeapons[slot], plyAmmo[slot]);
        }
    }
    return 1;
}
Is it work with antihack?
I don't know which anti-hack you use?
Reply


Messages In This Thread
[HELP]Set weapon to 0 - by whitedragon - 27.03.2010, 08:42
Re: [HELP]Set weapon to 0 - by Sebago[X] - 27.03.2010, 08:44
Re: [HELP]Set weapon to 0 - by Andy_McKinley - 27.03.2010, 08:45
Re: [HELP]Set weapon to 0 - by whitedragon - 27.03.2010, 09:05
Re: [HELP]Set weapon to 0 - by MadeMan - 27.03.2010, 09:15
Re: [HELP]Set weapon to 0 - by whitedragon - 27.03.2010, 09:18
Re: [HELP]Set weapon to 0 - by MadeMan - 27.03.2010, 09:18
Re: [HELP]Set weapon to 0 - by whitedragon - 27.03.2010, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)