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