Сделаем починку авто на клавишу - Caps Lock
В public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
Code: Select all
if(newkeys & KEY_CROUCH && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
RepairVehicle(GetPlayerVehicleID(playerid));
}