25.05.2012, 19:48
Hello. I am trying my luck with /inv system, and making the command /putgun, i need to check if player has the weapon and ammo that he is trying to put in inventory.
If it was only weapon, i would use if(GetPlayerWeapon(playerid) == GunId) but i want to get ammo also, and GetPlayerWeaponData confused me a bit...
How could i use GetPlayerWeaponDate, in order to check if the player has a desert eagle(ID 24) with 50 ammo?
Thanks. Today i am just feeling to script. xD
If it was only weapon, i would use if(GetPlayerWeapon(playerid) == GunId) but i want to get ammo also, and GetPlayerWeaponData confused me a bit...
How could i use GetPlayerWeaponDate, in order to check if the player has a desert eagle(ID 24) with 50 ammo?
Thanks. Today i am just feeling to script. xD