[Help] Make player reload weapon
#1

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:

Код:
GivePlayerWeapon(playerid, weaponid, 0);
SetPlayerAmmo(playerid, weaponid, ammo_from_inventory);
Reply
#2

The easiest solution I can think of is applying the reload animation when you load the weapon: ApplyAnimation.
Reply
#3

Run a timer that ticks after one second and applies the animation?
Reply
#4

I was thinking about to use animations, but I thought that refill the second ammo were possible.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)