02.02.2016, 12:04
When weapons doesn't have ammo then the player has not the weapon. 
But, I think you can use this function to end your idea.
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData

But, I think you can use this function to end your idea.
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData