09.10.2015, 18:14
Workaround untill you find a fix using https://sampwiki.blast.hk/wiki/GetPlayerAmmo
But you need to call that with weapon ids not slots.
Not a clue why GetPlayerWeaponData aint working though.
EDIT: forgot it only takes playerid param, maybe a combination of https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon and https://sampwiki.blast.hk/wiki/GetPlayerAmmo. Possibly wont look nice for the player.
Just ignore what i said it obviously would ruin it.
But you need to call that with weapon ids not slots.
Not a clue why GetPlayerWeaponData aint working though.
EDIT: forgot it only takes playerid param, maybe a combination of https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon and https://sampwiki.blast.hk/wiki/GetPlayerAmmo. Possibly wont look nice for the player.
Just ignore what i said it obviously would ruin it.