fix meth bug where keys were not responsive

This commit is contained in:
Lorenc Pekaj 2018-09-19 22:54:57 +10:00
parent 875bc6c7b2
commit d20ea0d682

View File

@ -92,7 +92,7 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
static static
Float: X, Float: Y, Float: Z, Float: Angle; Float: X, Float: Y, Float: Z, Float: Angle;
if ( PRESSED( KEY_SECONDARY_ATTACK ) ) if ( PRESSED( KEY_FIRE ) )
{ {
if ( IsPlayerInRangeOfPoint( playerid, 2.0, 2084.2842, 1234.0254, 414.7454 ) && IsPlayerInMethlab( playerid ) && p_Class[ playerid ] != CLASS_POLICE ) if ( IsPlayerInRangeOfPoint( playerid, 2.0, 2084.2842, 1234.0254, 414.7454 ) && IsPlayerInMethlab( playerid ) && p_Class[ playerid ] != CLASS_POLICE )
{ {