10.05.2009, 17:45
Hello!
I need some help. How do I save the ammo when they change the weapon and then set it back when they change back to the previous weapon? And save the ammo of ALL the weapons then set it back when they change the weapon.
Example: I have an AK47, I change to MP5 and it saves my AK47 ammo. When I change back to AK47, it sets my ammo to the previous. And I mean the rounds REMAINING to shoot out, not the whole equipment.
I tried some stuff with OnPlayerUpdate - failed.
I need some help. How do I save the ammo when they change the weapon and then set it back when they change back to the previous weapon? And save the ammo of ALL the weapons then set it back when they change the weapon.
Example: I have an AK47, I change to MP5 and it saves my AK47 ammo. When I change back to AK47, it sets my ammo to the previous. And I mean the rounds REMAINING to shoot out, not the whole equipment.
I tried some stuff with OnPlayerUpdate - failed.