23.09.2011, 13:08
I try setplayerammo, but it not work for mele weapon, like blunts, knife... how i can reset one mele weapon?
GivePlayerWeapon(playerid, weaponid, 0);
stock RemovePlayerWeapon(playerid, weaponid)
{
new weaponsArray[13][2]; // 1 Model, 2 Ammo.
for(new i = 0; != 13; ++i)
{
GetPlayerWeaponData(playerid, i, weaponsArray[i][0], weaponsArray[i][1]);
}
ResetPlayerWeapons(playerid);
for(new i = 0; i != 13; ++i)
{
if (weaponsArray[i][0] != weaponid)
GivePlayerWeapon(playerid, weaponsArray[i][0], weaponsArray[i][1]);
}
}