Problem with multiple key holds
#1

Hey. I'm trying to detect whenever a player is holding the fire key (for an IsPlayerShooting function) but at the moment I'm struggling.
pawn Код:
if(HOLDING(KEY_FIRE))
{
    holdingFire[playerid] = 1;
}
else
{
    holdingFire[playerid] = 0;
}
The above code works fine provided that the person stands still and shoots, but as soon as they are walking and shooting it just sets holdingFire to 0. What do you recommend I do to fix this?
Reply


Messages In This Thread
Problem with multiple key holds - by CaveDweller - 30.07.2013, 11:43
Re: Problem with multiple key holds - by JimmyCh - 30.07.2013, 11:47
Re: Problem with multiple key holds - by FUDDS - 30.07.2013, 11:55
Re: Problem with multiple key holds - by Konstantinos - 30.07.2013, 11:59
Re: Problem with multiple key holds - by FUDDS - 30.07.2013, 12:01
Re: Problem with multiple key holds - by CaveDweller - 30.07.2013, 22:20

Forum Jump:


Users browsing this thread: 1 Guest(s)