I guess this probably happens to all weapons with no ammo ? if yes it has something to do with this line
PHP код:
if(tmp[2] < tmp[4]) { RemoveWeapon(i, tmp[3]); ACKick(i,"Hack Armas"); }
This might fix it, as I have no idea how melee weapon ammos are saved
PHP код:
if(tmp[2] < tmp[4]&&tmp[0]!=10) { RemoveWeapon(i, tmp[3]); ACKick(i,"Hack Armas"); }
if this didn't fix it add this line after your getplayerweapondata and show us what it prints on your console
PHP код:
printf("SLOT:%i WeapData:%i pWeapData:%i WeapAData:%i pWeapAData:%i",tmp[0],tmp[1],tmp[3],tmp[2],tmp[4]);