How can I detect this?
#1

Hey, how can I detect if a player is holding a certain weapon. For instance, I want to check if a player is holding an M4 rifle, not that he has one in his inventory.
Reply
#2

Код:
if(GetPlayerWeapon(playerid) == 31) //M4
{

}
Reply
#3

I know of that function, and never tested to see if that meant it would be in his hand. Is that for "in the hand" or "in the pocket"?
Reply
#4

in the hand.
Reply
#5

Alright, cheers. I may get back to you otherwise.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)