30.07.2013, 11:43
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.
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?
pawn Код:
if(HOLDING(KEY_FIRE))
{
holdingFire[playerid] = 1;
}
else
{
holdingFire[playerid] = 0;
}