06.03.2016, 20:10
He means:
When you want to check if a player is holding KEY_FIRE, just use
pawn Код:
new pHoldingKeyFire[ MAX_PLAYERS ];
public OnPlayerKeyState...
{
if(PRESSED(KEY_FIRE))
pHoldingKeyFire[playerid] = 1;
if(RELEASED(KEY_FIRE))
pHoldingKeyFire[playerid] = 0;
return 1;
}
pawn Код:
if(pHoldingKeyFire[playerid])
{
//Do something
}

