15.10.2014, 06:48
Hi, i'm making a weapon system for my gamemode. It's simple, i made a player's inventory. This work this way:
A 9mm has 17 bullets per round. (0 - 17)
When the player shots all bullets (0 - 0) the system gives him more ammo (+17 bullets from his inventory). Then I want to make the player reload his weapon after gets inventory ammo.
But when player gets new ammo, he get the weapon already loaded.
I'm trying to do something like this:
https://www.youtube.com/watch?v=KCB_CxMFItY
I use this on my script for load the weapon:
A 9mm has 17 bullets per round. (0 - 17)
When the player shots all bullets (0 - 0) the system gives him more ammo (+17 bullets from his inventory). Then I want to make the player reload his weapon after gets inventory ammo.
But when player gets new ammo, he get the weapon already loaded.
I'm trying to do something like this:
https://www.youtube.com/watch?v=KCB_CxMFItY
I use this on my script for load the weapon:
Код:
GivePlayerWeapon(playerid, weaponid, 0); SetPlayerAmmo(playerid, weaponid, ammo_from_inventory);