IsPlayerReloading?
#1

How can I check if a player is reloading, or at least, to check if he's ammo is 0..

GetPlayerAmmo only works with the entire ammo, I need the current ammo.

Thanks.
Reply
#2

umm im not exactly sure if this would work, but since the new release of SAMP 0.3B, can't you check the player's current animation?
GetPlayerAnimationIndex(playerid);
This was how people created a "IsPlayerSwimming" function, so im assuming you can do it to for reloading
Reply
#3

Quote:
Originally Posted by Angelus~
Посмотреть сообщение
umm im not exactly sure if this would work, but since the new release of SAMP 0.3B, can't you check the player's current animation?
GetPlayerAnimationIndex(playerid);
This was how people created a "IsPlayerSwimming" function, so im assuming you can do it to for reloading
I tryed it, shooting or reloading is always the same, I can't remember wich one was, I think it is 1647 or something close.

So if anyone knows a function or an idea, it will be welcomed
Reply
#4

pawn Код:
#define WEAPONSTATE_UNKNOWN             -1
#define WEAPONSTATE_NO_BULLETS          0
#define WEAPONSTATE_LAST_BULLET         1
#define WEAPONSTATE_MORE_BULLETS        2
#define WEAPONSTATE_RELOADING           3

GetPlayerWeaponState(playerid);
Reply
#5

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
#define WEAPONSTATE_UNKNOWN             -1
#define WEAPONSTATE_NO_BULLETS          0
#define WEAPONSTATE_LAST_BULLET         1
#define WEAPONSTATE_MORE_BULLETS        2
#define WEAPONSTATE_RELOADING           3

GetPlayerWeaponState(playerid);
Woop thanks!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)