move spike strip in car key to H/CAPSLOCK

This commit is contained in:
Lorenc Pekaj 2018-10-11 20:24:21 +11:00
parent 05cd9b1722
commit 3ad50aec5e
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) {
new
player_vehicle = GetPlayerVehicleID( playerid );
if ( PRESSED( KEY_AIM ) && player_vehicle && GetPlayerClass( playerid ) == CLASS_POLICE && p_inFBI{ playerid } )
if ( PRESSED( KEY_CROUCH ) && player_vehicle && GetPlayerClass( playerid ) == CLASS_POLICE && p_inFBI{ playerid } )
{
new
vehicle_model = GetVehicleModel( player_vehicle );
@ -224,3 +224,6 @@ stock ClearPlayerSpikeStrips( playerid, bool: distance_check = true )
}
return 1;
}
stock encode_tires( tires1, tires2, tires3, tires4 )
return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);

View File

@ -14176,9 +14176,6 @@ stock SetObjectFacePoint(iObjectID, Float: fX, Float: fY, Float: fOffset, bool:
}
}
stock encode_tires( tires1, tires2, tires3, tires4 )
return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
stock TimeConvert( seconds )
{
static